Use the now-prefixed js-sdk status message API

See 08b3dfa3b5
This commit is contained in:
Travis Ralston 2018-12-12 23:07:03 -07:00
parent b0b7932f5f
commit f2649f7807
5 changed files with 10 additions and 10 deletions

View file

@ -895,7 +895,7 @@ module.exports = withMatrixClient(React.createClass({
presenceState = this.props.member.user.presence;
presenceLastActiveAgo = this.props.member.user.lastActiveAgo;
presenceCurrentlyActive = this.props.member.user.currentlyActive;
statusMessage = this.props.member.user.statusMessage;
statusMessage = this.props.member.user._unstable_statusMessage;
}
const room = this.props.matrixClient.getRoom(this.props.member.roomId);

View file

@ -84,7 +84,7 @@ module.exports = React.createClass({
const name = this._getDisplayName();
const active = -1;
const presenceState = member.user ? member.user.presence : null;
const statusMessage = member.user ? member.user.statusMessage : null;
const statusMessage = member.user ? member.user._unstable_statusMessage : null;
const av = (
<MemberAvatar member={member} width={36} height={36} />

View file

@ -257,8 +257,8 @@ module.exports = React.createClass({
if (!isInvite && isJoined && looksLikeDm) {
const selfId = MatrixClientPeg.get().getUserId();
const otherMember = this.props.room.currentState.getMembersExcept([selfId])[0];
if (otherMember.user && otherMember.user.statusMessage) {
subtext = otherMember.user.statusMessage;
if (otherMember.user && otherMember.user._unstable_statusMessage) {
subtext = otherMember.user._unstable_statusMessage;
}
}