Merge pull request #3930 from matrix-org/bwindels/fixnoroom

Fix error in verification code on develop
pull/21833/head
David Baker 2020-01-24 13:30:25 +00:00 committed by GitHub
commit 330f606513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ import { _t } from '../languageHandler';
export function getNameForEventRoom(userId, roomId) {
const client = MatrixClientPeg.get();
const room = client.getRoom(roomId);
const member = room.getMember(userId);
const member = room && room.getMember(userId);
return member ? member.name : userId;
}