mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
1592e7a22f
2 changed files with 11 additions and 1 deletions
|
@ -186,6 +186,9 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoomStateMember: function(ev, state, member) {
|
onRoomStateMember: function(ev, state, member) {
|
||||||
|
if (member.roomId !== this.props.roomId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// redraw the badge on the membership list
|
// redraw the badge on the membership list
|
||||||
if (this.state.phase === this.Phase.RoomMemberList && member.roomId === this.props.roomId) {
|
if (this.state.phase === this.Phase.RoomMemberList && member.roomId === this.props.roomId) {
|
||||||
this._delayedUpdate();
|
this._delayedUpdate();
|
||||||
|
|
|
@ -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 a new issue