From e06783c5c71ecb08dc70761f41b0ed4c3531b875 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 21 Mar 2018 12:45:09 +0000 Subject: [PATCH] Fix PresenceLabel in MemberInfo Which crashing when clicking on a member if presence was still enabled. --- src/components/views/rooms/MemberInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index dd260933be..c449ad2683 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -871,6 +871,7 @@ module.exports = withMatrixClient(React.createClass({ let presenceLabel = null; if (showPresence) { + const PresenceLabel = sdk.getComponent('rooms.PresenceLabel'); presenceLabel = ; @@ -879,7 +880,6 @@ module.exports = withMatrixClient(React.createClass({ let roomMemberDetails = null; if (this.props.member.roomId) { // is in room const PowerSelector = sdk.getComponent('elements.PowerSelector'); - const PresenceLabel = sdk.getComponent('rooms.PresenceLabel'); roomMemberDetails =
{ _t("Level:") }