Ensure widgets always have a sender associated with them

Fixes https://github.com/vector-im/riot-web/issues/11419
This commit is contained in:
Travis Ralston 2019-11-18 13:16:36 -07:00
parent f543a113cf
commit f5ec9eb8f4
3 changed files with 8 additions and 4 deletions

View file

@ -67,7 +67,7 @@ module.exports = createReactClass({
return ev.getStateKey() === ActiveWidgetStore.getPersistentWidgetId();
});
const app = WidgetUtils.makeAppConfig(
appEvent.getStateKey(), appEvent.getContent(), appEvent.sender, persistentWidgetInRoomId,
appEvent.getStateKey(), appEvent.getContent(), appEvent.getSender(), persistentWidgetInRoomId,
);
const capWhitelist = WidgetUtils.getCapWhitelistForAppTypeInRoomId(app.type, persistentWidgetInRoomId);
const AppTile = sdk.getComponent('elements.AppTile');