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: Add comment for currently_echoing_messages check.

Sahil Batra594eed646a7f
diff --git a/static/js/message_edit.js b/static/js/message_edit.js
index 11edf08358d..5cc38c29313 100644
--- a/static/js/message_edit.js
+++ b/static/js/message_edit.js
@@ -122,6 +122,8 @@ export function is_message_editable_ignoring_permissions(message) {
return false;
}
+ // Messages where we're currently locally echoing an edit not yet acknowledged
+ // by the server.
if (currently_echoing_messages.has(message.id)) {
return false;
}