Called whenever a change occurs with the given change.
A change occurs when a new state is emitted.
onChange is called before the state of the cubit is updated.
onChange is a great spot to add logging/analytics for a specific cubit.
Mark messages as seen, need to provide a roomId and a list of messageIds
React to a message with a reactionBody
Currently one user can react once, so if the user already reacted to a message
the reaction will be removed instead
If the user did not react to the message yet, the reaction will be added
Private method to add a reaction to a message
Dispatches loading state, helpful for displaying loading indicator