Merge pull request #5520 from vector-im/luke/right-panel-no-group
Do not init a group store when no groupId specified
This commit is contained in:
commit
a1512af9f9
1 changed files with 2 additions and 1 deletions
|
@ -127,8 +127,9 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
_initGroupStore(groupId) {
|
||||
if (!groupId) return;
|
||||
this._groupStore = GroupStoreCache.getGroupStore(
|
||||
this.context.matrixClient, this.props.groupId,
|
||||
this.context.matrixClient, groupId,
|
||||
);
|
||||
this._groupStore.registerListener(this.onGroupStoreUpdated);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue