diff --git a/src/matrix/room/members/RoomMember.js b/src/matrix/room/members/RoomMember.js index fe55b5aa..324f0744 100644 --- a/src/matrix/room/members/RoomMember.js +++ b/src/matrix/room/members/RoomMember.js @@ -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; }