js: Extract message_edit_history.js.

This commit is contained in:
Sharif Naas
2020-06-06 19:50:31 -07:00
committed by Tim Abbott
parent 4eaa62eaa6
commit b0a0ae215f
9 changed files with 74 additions and 68 deletions

View File

@@ -324,7 +324,7 @@ exports.update_messages = function update_messages(events) {
// Rerender "Message edit history" if it was open to the edited message.
if ($('#message-edit-history').hasClass('in') &&
msg.id === parseInt($('#message-history').attr('data-message-id'), 10)) {
message_edit.fetch_and_render_message_history(msg);
message_edit_history.fetch_and_render_message_history(msg);
}
}