Just pass the roomId into WidgetEchoStore

This commit is contained in:
David Baker 2018-07-05 18:43:20 +01:00
parent 5f2e2efce6
commit eb552e5cef
5 changed files with 20 additions and 20 deletions

View file

@ -167,7 +167,7 @@ module.exports = React.createClass({
_getApps: function() {
const widgets = WidgetEchoStore.getEchoedRoomWidgets(
this.props.room, WidgetUtils.getRoomWidgets(this.props.room),
this.props.room.roomId, WidgetUtils.getRoomWidgets(this.props.room),
);
return widgets.map((ev) => {
return this._initAppConfig(ev.getStateKey(), ev.getContent(), ev.sender);
@ -260,7 +260,7 @@ module.exports = React.createClass({
let spinner;
if (
apps.length === 0 && WidgetEchoStore.roomHasPendingWidgets(
this.props.room,
this.props.room.roomId,
WidgetUtils.getRoomWidgets(this.props.room),
)
) {