Skip to content

Commit a1512af

Browse files
authored
Merge pull request element-hq#5520 from vector-im/luke/right-panel-no-group
Do not init a group store when no groupId specified
2 parents 31c5122 + cd26f63 commit a1512af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/components/structures/RightPanel.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ module.exports = React.createClass({
127127
},
128128

129129
_initGroupStore(groupId) {
130+
if (!groupId) return;
130131
this._groupStore = GroupStoreCache.getGroupStore(
131-
this.context.matrixClient, this.props.groupId,
132+
this.context.matrixClient, groupId,
132133
);
133134
this._groupStore.registerListener(this.onGroupStoreUpdated);
134135
},

0 commit comments

Comments
 (0)