This commit is contained in:
Bruno Windels 2021-03-05 17:02:57 +01:00
parent f98f690b49
commit 49fc971d67

View File

@ -24,7 +24,7 @@ export class RoomMember {
} }
static fromMemberEvent(roomId, memberEvent) { static fromMemberEvent(roomId, memberEvent) {
const userId = memberEvent && memberEvent.state_key; const userId = memberEvent?.state_key;
if (typeof userId !== "string") { if (typeof userId !== "string") {
return; return;
} }