only lazy load the members when viewing a joined room
This commit is contained in:
parent
8c985bd049
commit
de3e143a8f
2 changed files with 3 additions and 1 deletions
|
@ -312,6 +312,9 @@ module.exports = React.createClass({
|
||||||
// Stop peeking because we have joined this room previously
|
// Stop peeking because we have joined this room previously
|
||||||
MatrixClientPeg.get().stopPeeking();
|
MatrixClientPeg.get().stopPeeking();
|
||||||
this.setState({isPeeking: false});
|
this.setState({isPeeking: false});
|
||||||
|
|
||||||
|
//viewing a previously joined room, try to lazy load members
|
||||||
|
MatrixClientPeg.get().loadRoomMembersIfNeeded(room.roomId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -133,7 +133,6 @@ class RoomViewStore extends Store {
|
||||||
|
|
||||||
_viewRoom(payload) {
|
_viewRoom(payload) {
|
||||||
if (payload.room_id) {
|
if (payload.room_id) {
|
||||||
MatrixClientPeg.get().loadRoomMembersIfNeeded(payload.room_id);
|
|
||||||
const newState = {
|
const newState = {
|
||||||
roomId: payload.room_id,
|
roomId: payload.room_id,
|
||||||
roomAlias: payload.room_alias,
|
roomAlias: payload.room_alias,
|
||||||
|
|
Loading…
Reference in a new issue