mirror of https://github.com/vector-im/riot-web
avoid memberlist refresh for events related to rooms other but the current
parent
c8ab8bf5f8
commit
9cc9fbf924
|
@ -163,15 +163,22 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoomStateMember: function(ev, state, member) {
|
onRoomStateMember: function(ev, state, member) {
|
||||||
|
if (member.roomId !== this.props.roomId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this._updateList();
|
this._updateList();
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoomMemberName: function(ev, member) {
|
onRoomMemberName: function(ev, member) {
|
||||||
|
if (member.roomId !== this.props.roomId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this._updateList();
|
this._updateList();
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoomStateEvent: function(event, state) {
|
onRoomStateEvent: function(event, state) {
|
||||||
if (event.getType() === "m.room.third_party_invite") {
|
if (event.getRoomId() === this.props.roomId &&
|
||||||
|
event.getType() === "m.room.third_party_invite") {
|
||||||
this._updateList();
|
this._updateList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue