mirror of https://github.com/vector-im/riot-web
Fix room_id check when adding user widgets (#7448)
parent
00feb24877
commit
6eea416e7e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue