this was doing nothing (it is a fragment back when there was no deprecated rtcSession.room)

This commit is contained in:
Timo
2025-02-28 14:45:30 +01:00
parent 7de17e50ca
commit 26d3cf2b42

View File

@@ -149,12 +149,10 @@ export const GroupCallView: FC<Props> = ({
);
useEffect(() => {
// Sanity check the room object
if (client.getRoom(rtcSession.room.roomId) !== rtcSession.room) {
if (client.getRoom(rtcSession.room.roomId) !== rtcSession.room)
logger.warn(
`We've ended up with multiple rooms for the same ID (${rtcSession.room.roomId}). This indicates a bug in the group call loading code, and may lead to incomplete room state.`,
);
return undefined;
}
}, [client, rtcSession.room]);
const room = rtcSession.room as Room;