Call message.set_message_booleans() in update_messages().

When we learn about updated message, a bunch of flag/boolean
fields concern us:

    starred
    mentioned
    alerted
    is_me_message

We now set booleans consistently with how we set new incoming
messages.
This commit is contained in:
Steve Howell 2017-08-04 10:17:08 -04:00 committed by Tim Abbott
parent 187ec3a922
commit f81f9a26e8
1 changed files with 1 additions and 3 deletions

View File

@ -125,9 +125,7 @@ exports.update_messages = function update_messages(events) {
}
msgs_to_rerender.push(msg);
msg.alerted = event.flags.indexOf("has_alert_word") !== -1;
msg.mentioned = event.flags.indexOf("mentioned") !== -1 ||
event.flags.indexOf("wildcard_mentioned") !== -1;
message_store.set_message_booleans(msg, event.flags);
condense.un_cache_message_content_height(msg.id);