Null-guard member mention pills for rooms you have left (notif panel)

pull/21833/head
Michael Telatynski 2019-12-17 16:54:59 +00:00
parent 0c89ab9fb5
commit 2e8d66fa36
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ const Pill = createReactClass({
}
break;
case Pill.TYPE_USER_MENTION: {
const localMember = nextProps.room.getMember(resourceId);
const localMember = nextProps.room ? nextProps.room.getMember(resourceId) : undefined;
member = localMember;
if (!localMember) {
member = new RoomMember(null, resourceId);