mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Fix PresenceLabel in MemberInfo
Which crashing when clicking on a member if presence was still enabled.
This commit is contained in:
parent
55aeac6990
commit
e06783c5c7
1 changed files with 1 additions and 1 deletions
|
@ -871,6 +871,7 @@ module.exports = withMatrixClient(React.createClass({
|
|||
|
||||
let presenceLabel = null;
|
||||
if (showPresence) {
|
||||
const PresenceLabel = sdk.getComponent('rooms.PresenceLabel');
|
||||
presenceLabel = <PresenceLabel activeAgo={presenceLastActiveAgo}
|
||||
currentlyActive={presenceCurrentlyActive}
|
||||
presenceState={presenceState} />;
|
||||
|
@ -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 = <div>
|
||||
<div className="mx_MemberInfo_profileField">
|
||||
{ _t("Level:") } <b>
|
||||
|
|
Loading…
Reference in a new issue