message_events: Fix live update of message edit history.

This commit adds code to live update the message edit history.
Message edit history is fetched and rendered again if the edit
history modal is open.

This also adds 'data-message-id' attribute to 'message-history'
when opening history modal element which is used for checking
whether the history modal opened is of the message which is
edited.

Fixes #15051.
This commit is contained in:
sahil839
2020-05-23 22:37:31 +05:30
committed by Tim Abbott
parent 3aa74b67a0
commit 2af4ef6c6d
3 changed files with 15 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ zrequire('stream_data');
zrequire('stream_topic_history');
zrequire('unread');
set_global('$', global.make_zjquery());
set_global('alert_words', {});
set_global('condense', {});
set_global('current_msg_list', {});