Sends a message to the specified room.

Will throw an error if the message count limit is exceeded.

Will throw an error if the message, sender, or receivers are not valid.

Will throw an error if the user is not allowed to send a message in the event room.

launchMessages({
updateIsMessagesModalVisible: (visible) => console.log("Modal visibility:", visible),
isMessagesModalVisible: false,
});