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

Commit

Permalink
Fix a soft crash with video rooms (#8333)
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown authored Apr 14, 2022
1 parent 8da6c98 commit f27386e
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 f27386e

Please sign in to comment.