cleanup
This commit is contained in:
parent
f98f690b49
commit
49fc971d67
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ export class RoomMember {
|
|||
}
|
||||
|
||||
static fromMemberEvent(roomId, memberEvent) {
|
||||
const userId = memberEvent && memberEvent.state_key;
|
||||
const userId = memberEvent?.state_key;
|
||||
if (typeof userId !== "string") {
|
||||
return;
|
||||
}
|
||||
|
|
Reference in a new issue