mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
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:
committed by
Tim Abbott
parent
c3408b56f0
commit
c22a94dc89
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user