Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit f27386e

Browse files
authored
Fix a soft crash with video rooms (#8333)
1 parent 8da6c98 commit f27386e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/VideoChannelUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ export const addVideoChannel = async (roomId: string, roomName: string) => {
4242
export const getConnectedMembers = (state: RoomState): RoomMember[] =>
4343
state.getStateEvents(VIDEO_CHANNEL_MEMBER)
4444
// Must have a device connected and still be joined to the room
45-
.filter(e => e.getContent<IVideoChannelMemberContent>().devices?.length)
45+
.filter(e => e.getContent<IVideoChannelMemberContent>()?.devices?.length)
4646
.map(e => state.getMember(e.getStateKey()))
47-
.filter(member => member.membership === "join");
47+
.filter(member => member?.membership === "join");

0 commit comments

Comments
 (0)