Skip to content

Commit cd26f63

Browse files
committed
Do not init a group store when no groupId specified
(in RightPanel), otherwise the store will happily send requests to the server for the `undefined` group.
1 parent 31c5122 commit cd26f63

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)