Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
server_events_dispatch: Throw blueslip if update_dict without prop.
YashRE42195b1b28ee1c
diff --git a/frontend_tests/node_tests/dispatch.js b/frontend_tests/node_tests/dispatch.jsindex d64c68a0b96..aae857645ee 100644--- a/frontend_tests/node_tests/dispatch.js+++ b/frontend_tests/node_tests/dispatch.js@@ -882,4 +882,10 @@ run_test("server_event_dispatch_op_errors", () => {server_events_dispatch.dispatch_normal_event({type: "subscription", op: "other"});blueslip.expect("error", "Unexpected event type reaction/other");server_events_dispatch.dispatch_normal_event({type: "reaction", op: "other"});+ blueslip.expect("error", "Unexpected event type realm/update_dict/other");+ server_events_dispatch.dispatch_normal_event({+ type: "realm",+ op: "update_dict",+ property: "other",+ });});diff --git a/static/js/server_events_dispatch.js b/static/js/server_events_dispatch.jsindex 7c8d2d713b1..e49b88be0a1 100644--- a/static/js/server_events_dispatch.js+++ b/static/js/server_events_dispatch.js@@ -261,6 +261,9 @@ export function dispatch_normal_event(event) {page_params.realm_night_logo_source = event.data.night_logo_source;realm_logo.rerender();break;+ default:+ blueslip.error("Unexpected event type realm/update_dict/" + event.property);+ break;}} else if (event.op === "deactivated") {// This handler is likely unnecessary, in that if we