This commit improves the handling of referenced messages in the network message
commands. The changes include:
Use getOriginalMessage and findOriginalMessage functions to fetch the
original message data, handling both original and broadcast messages.
Fetch the hub data directly from the original message data, avoiding
additional database queries.
Use the fetchHub function to retrieve the hub data, ensuring it is
available.
Update the DeleteMessage command to use the broadcasts property of the
original message instead of the broadcastMsgs property.
Refactor the NetworkReactionInteraction class to use the original message
data directly, instead of relying on the broadcastedMessages table.
The goal of these changes is to improve the efficiency and reliability of the
network message handling, reducing database queries and ensuring consistent
data access.
This commit improves the handling of referenced messages in the network message commands. The changes include:
getOriginalMessage
andfindOriginalMessage
functions to fetch the original message data, handling both original and broadcast messages.fetchHub
function to retrieve the hub data, ensuring it is available.DeleteMessage
command to use thebroadcasts
property of the original message instead of thebroadcastMsgs
property.NetworkReactionInteraction
class to use the original message data directly, instead of relying on thebroadcastedMessages
table.The goal of these changes is to improve the efficiency and reliability of the network message handling, reducing database queries and ensuring consistent data access.