mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
local echo: Bypass message.flags array.
We no longer set message.flags in the local echo path. In the markdown parsing step, we just set message.mentioned directly. And then we change `insert_new_messages` to no longer convert flags to booleans, and move that code to only happen for incoming server message events.
This commit is contained in:
@@ -55,7 +55,6 @@ function maybe_add_narrowed_messages(messages, msg_list, messages_are_new) {
|
||||
|
||||
|
||||
exports.insert_new_messages = function insert_new_messages(messages, locally_echoed) {
|
||||
_.each(messages, message_store.set_message_booleans);
|
||||
messages = _.map(messages, message_store.add_message_metadata);
|
||||
|
||||
unread.process_loaded_messages(messages);
|
||||
|
||||
Reference in New Issue
Block a user