message_reactions: Clean meassge reactions during initial processing.

Clean reactions and set message_reactions in process_new_message.
Earlier, message_reactions was being set
after the predicate for the narrow was built,
as a result functions called while building the predicate
could not access it.
This commit is contained in:
Kenneth Rodrigues
2024-03-09 10:58:05 +05:30
committed by Tim Abbott
parent c3408b56f0
commit c22a94dc89
4 changed files with 14 additions and 9 deletions

View File

@@ -147,6 +147,8 @@ people.add_active_user(me);
people.add_active_user(test_user);
people.initialize_current_user(me.user_id);
// process_new_messages calls get_message_reactions, so we need to stub it.
reactions.get_message_reactions = (message) => message.reactions;
message_helper.process_new_message(test_message);
const realm_emoji = {};