mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Force update the RightPanel when the member in MemberInfo is updated.
This commit is contained in:
parent
db5d9e2f6e
commit
ac8fcbb264
@ -68,6 +68,11 @@ module.exports = React.createClass({
|
|||||||
if (this.state.phase == this.Phase.MemberList && member.roomId === this.props.roomId) {
|
if (this.state.phase == this.Phase.MemberList && member.roomId === this.props.roomId) {
|
||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
}
|
}
|
||||||
|
else if (this.state.phase === this.Phase.MemberInfo && member.roomId === this.props.roomId &&
|
||||||
|
member.userId === this.state.member.userId) {
|
||||||
|
// refresh the member info (e.g. new power level)
|
||||||
|
this.forceUpdate();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onAction: function(payload) {
|
onAction: function(payload) {
|
||||||
|
Loading…
Reference in New Issue
Block a user