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

Commit

Permalink
Fix a soft crash with video rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown committed Apr 14, 2022
1 parent aa33442 commit 5ce04ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/VideoChannelUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ export const addVideoChannel = async (roomId: string, roomName: string) => {
export const getConnectedMembers = (state: RoomState): RoomMember[] =>
state.getStateEvents(VIDEO_CHANNEL_MEMBER)
// Must have a device connected and still be joined to the room
.filter(e => e.getContent<IVideoChannelMemberContent>().devices?.length)
.filter(e => e.getContent<IVideoChannelMemberContent>()?.devices?.length)
.map(e => state.getMember(e.getStateKey()))
.filter(member => member.membership === "join");
.filter(member => member?.membership === "join");

0 comments on commit 5ce04ec

Please sign in to comment.