You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-28 09:24:05 +03:00
only lazy load the members when viewing a joined room
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user