mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
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:
parent
8d79606136
commit
997eb82f85
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user