Skip to content

Commit

Permalink
Send the widgetId as part of all toWidget requests
Browse files Browse the repository at this point in the history
Addresses part of element-hq/element-web#6708

Signed-off-by: Travis Ralston <[email protected]>
  • Loading branch information
turt2live committed May 12, 2018
1 parent 1515ca1 commit 98da8b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/WidgetMessaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export default class WidgetMessaging {
}

messageToWidget(action) {
action.widgetId = this.widgetId; // Required to be sent for all outbound requests

return this.toWidget.exec(action, this.target).then((data) => {
// Check for errors and reject if found
if (data.response === undefined) { // null is valid
Expand Down

0 comments on commit 98da8b3

Please sign in to comment.