mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 23:18:21 +00:00
Add a missing null check
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user