mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Add a missing null check
This commit is contained in:
parent
c6f35428d7
commit
63658e0441
@ -257,7 +257,7 @@ 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._unstable_statusMessage) {
|
||||
if (otherMember && otherMember.user && otherMember.user._unstable_statusMessage) {
|
||||
subtext = otherMember.user._unstable_statusMessage;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user