mirror of https://github.com/zulip/zulip.git
server_events_dispatch: Throw blueslip if update_dict without prop.
This commit is contained in:
parent
e3b6cc61f3
commit
195b1b28ee
|
@ -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",
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue