mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +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…
Reference in New Issue
Block a user