only lazy load the members when viewing a joined room

This commit is contained in:
Bruno Windels 2018-07-12 19:38:08 +02:00
parent 8c985bd049
commit de3e143a8f
2 changed files with 3 additions and 1 deletions

View file

@ -312,6 +312,9 @@ module.exports = React.createClass({
// Stop peeking because we have joined this room previously
MatrixClientPeg.get().stopPeeking();
this.setState({isPeeking: false});
//viewing a previously joined room, try to lazy load members
MatrixClientPeg.get().loadRoomMembersIfNeeded(room.roomId);
}
}
},