Fix room_id check when adding user widgets (#7448)

This commit is contained in:
bink 2022-01-05 10:54:38 +01:00 committed by GitHub
parent 00feb24877
commit 6eea416e7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -250,7 +250,6 @@ import { objectClone } from "./utils/objects";
enum Action {
CloseScalar = "close_scalar",
GetWidgets = "get_widgets",
SetWidgets = "set_widgets",
SetWidget = "set_widget",
JoinRulesState = "join_rules_state",
SetPlumbingState = "set_plumbing_state",
@ -630,7 +629,7 @@ const onMessage = function(event: MessageEvent<any>): void {
if (event.data.action === Action.GetWidgets) {
getWidgets(event, null);
return;
} else if (event.data.action === Action.SetWidgets) {
} else if (event.data.action === Action.SetWidget) {
setWidget(event, null);
return;
} else {