Merge pull request #3930 from matrix-org/bwindels/fixnoroom
Fix error in verification code on developpull/21833/head
commit
330f606513
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue