mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-01 23:21:40 +01:00
cleanup
This commit is contained in:
parent
f98f690b49
commit
49fc971d67
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user