mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Fix room_id check when adding user widgets (#7448)
This commit is contained in:
parent
00feb24877
commit
6eea416e7e
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue