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:
David Baker 2017-11-06 14:10:27 +00:00 committed by GitHub
commit a1512af9f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,8 +127,9 @@ module.exports = React.createClass({
}, },
_initGroupStore(groupId) { _initGroupStore(groupId) {
if (!groupId) return;
this._groupStore = GroupStoreCache.getGroupStore( this._groupStore = GroupStoreCache.getGroupStore(
this.context.matrixClient, this.props.groupId, this.context.matrixClient, groupId,
); );
this._groupStore.registerListener(this.onGroupStoreUpdated); this._groupStore.registerListener(this.onGroupStoreUpdated);
}, },