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.

events: Use op rather than operation in frontend.

Tim Abbott1e04fad11a2d
diff --git a/static/js/server_events_dispatch.js b/static/js/server_events_dispatch.js
index fbd93857a27..f2770f06e83 100644
--- a/static/js/server_events_dispatch.js
+++ b/static/js/server_events_dispatch.js
@@ -496,14 +496,14 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
break;
case "update_message_flags": {
- const new_value = event.operation === "add";
+ const new_value = event.op === "add";
switch (event.flag) {
case "starred":
for (const message_id of event.messages) {
message_flags.update_starred_flag(message_id, new_value);
}
- if (event.operation === "add") {
+ if (event.op === "add") {
starred_messages.add(event.messages);
} else {
starred_messages.remove(event.messages);