Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
server_events_dispatch: Throw blueslip from realm_domains based on op.
YashRE4227ac45e71bd4
diff --git a/frontend_tests/node_tests/dispatch.js b/frontend_tests/node_tests/dispatch.jsindex 03ad461c8a1..7cc15a80690 100644--- a/frontend_tests/node_tests/dispatch.js+++ b/frontend_tests/node_tests/dispatch.js@@ -890,4 +890,6 @@ run_test("server_event_dispatch_op_errors", () => {});blueslip.expect("error", "Unexpected event type realm_bot/other");server_events_dispatch.dispatch_normal_event({type: "realm_bot", op: "other"});+ blueslip.expect("error", "Unexpected event type realm_domains/other");+ server_events_dispatch.dispatch_normal_event({type: "realm_domains", op: "other"});});diff --git a/static/js/server_events_dispatch.js b/static/js/server_events_dispatch.jsindex fdbb3587f85..5ceaabf2865 100644--- a/static/js/server_events_dispatch.js+++ b/static/js/server_events_dispatch.js@@ -364,6 +364,9 @@ export function dispatch_normal_event(event) {}settings_org.populate_realm_domains(page_params.realm_domains);break;+ default:+ blueslip.error("Unexpected event type realm_domains/" + event.op);+ break;}}break;