Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1809 from matrix-org/dbkr/fix_presence_labels
Browse files Browse the repository at this point in the history
Fix PresenceLabel in MemberInfo
  • Loading branch information
lukebarnard1 authored Mar 21, 2018
2 parents 55aeac6 + e06783c commit 7a2b493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/rooms/MemberInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} />;
Expand All @@ -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>
Expand Down

0 comments on commit 7a2b493

Please sign in to comment.