Properly highlight alert words after message edits.

After messages are updated, we process the message for alert
word highlighting, just like we do when new messages are
received.

(imported from commit 5538c0f875595df3ec1ac7c4bc45f0fe44c700cc)
This commit is contained in:
Steve Howell 2014-01-08 13:44:07 -05:00 committed by Waseem Daher
parent 8d79606136
commit 997eb82f85

View File

@ -717,6 +717,8 @@ function update_messages(events) {
return;
}
msg.alerted = event.flags.indexOf("has_alert_word") !== -1;
ui.un_cache_message_content_height(msg.id);
if (event.rendered_content !== undefined) {
@ -756,6 +758,8 @@ function update_messages(events) {
msg.last_edit_timestamp = event.edit_timestamp;
delete msg.last_edit_timestr;
alert_words.process_message(msg);
});
home_msg_list.rerender();