From ac8fcbb264e80bb47883bce9751198e0e0b2effa Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 4 Dec 2015 16:16:41 +0000 Subject: [PATCH] Force update the RightPanel when the member in MemberInfo is updated. --- src/components/structures/RightPanel.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index 67d9ab76..9cacb1ed 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -68,6 +68,11 @@ module.exports = React.createClass({ if (this.state.phase == this.Phase.MemberList && member.roomId === this.props.roomId) { 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) {