Merge pull request #1809 from matrix-org/dbkr/fix_presence_labels

Fix PresenceLabel in MemberInfo
pull/21833/head
Luke Barnard 2018-03-21 14:08:28 +00:00 committed by GitHub
commit 7a2b493451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>