mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +03:00
Add a missing null check
This commit is contained in:
parent
c6f35428d7
commit
63658e0441
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ module.exports = React.createClass({
|
||||||
if (!isInvite && isJoined && looksLikeDm) {
|
if (!isInvite && isJoined && looksLikeDm) {
|
||||||
const selfId = MatrixClientPeg.get().getUserId();
|
const selfId = MatrixClientPeg.get().getUserId();
|
||||||
const otherMember = this.props.room.currentState.getMembersExcept([selfId])[0];
|
const otherMember = this.props.room.currentState.getMembersExcept([selfId])[0];
|
||||||
if (otherMember.user && otherMember.user._unstable_statusMessage) {
|
if (otherMember && otherMember.user && otherMember.user._unstable_statusMessage) {
|
||||||
subtext = otherMember.user._unstable_statusMessage;
|
subtext = otherMember.user._unstable_statusMessage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue