mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
refactor: Upstream calls to set_message_booleans.
We want to call `set_message_booleans` as soon as we get data from the server, to avoid confusion about whether `flags` is the authoritative field. This commit has callers to `add_message_metadata` call `set_message_booleans`. This also sets us up to **not** call `set_message_booleans` in the local echo codepath, where we can just have the markdown processor set booleans natively.
This commit is contained in:
@@ -23,6 +23,7 @@ function process_result(messages, opts) {
|
||||
narrow.show_empty_narrow_message();
|
||||
}
|
||||
|
||||
_.each(messages, message_store.set_message_booleans);
|
||||
messages = _.map(messages, message_store.add_message_metadata);
|
||||
|
||||
// If we're loading more messages into the home view, save them to
|
||||
|
||||
Reference in New Issue
Block a user