From 49fc971d677787b27eeabd5049e7284d03a01fb8 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 5 Mar 2021 17:02:57 +0100 Subject: [PATCH] cleanup --- src/matrix/room/members/RoomMember.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }