Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_edit: Fix weird variable name for edit history events.

Tim Abbottd48a9ac0f40b
diff --git a/static/js/message_list_view.js b/static/js/message_list_view.js
index de71d715fd8..74f464eba63 100644
--- a/static/js/message_list_view.js
+++ b/static/js/message_list_view.js
@@ -62,11 +62,14 @@ function message_was_only_moved(message) {
// edited.
let moved = false;
if (message.edit_history !== undefined) {
- for (const msg of message.edit_history) {
- if (msg.prev_content) {
+ for (const edit_history_event of message.edit_history) {
+ if (edit_history_event.prev_content) {
return false;
}
- if (util.get_edit_event_prev_topic(msg) || msg.prev_stream) {
+ if (
+ util.get_edit_event_prev_topic(edit_history_event) ||
+ edit_history_event.prev_stream
+ ) {
moved = true;
}
}