Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 98da8b3

Browse files
committed
Send the widgetId as part of all toWidget requests
Addresses part of element-hq/element-web#6708 Signed-off-by: Travis Ralston <[email protected]>
1 parent 1515ca1 commit 98da8b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WidgetMessaging.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export default class WidgetMessaging {
4444
}
4545

4646
messageToWidget(action) {
47+
action.widgetId = this.widgetId; // Required to be sent for all outbound requests
48+
4749
return this.toWidget.exec(action, this.target).then((data) => {
4850
// Check for errors and reject if found
4951
if (data.response === undefined) { // null is valid

0 commit comments

Comments
 (0)