mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-24 00:38:31 +08:00
Warn about duplicate rooms
This commit is contained in:
parent
460aa7618a
commit
1b5b9342fe
@ -85,6 +85,14 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
};
|
};
|
||||||
}, [rtcSession]);
|
}, [rtcSession]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// Sanity check the room object
|
||||||
|
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.`,
|
||||||
|
);
|
||||||
|
}, [client, rtcSession.room]);
|
||||||
|
|
||||||
const { displayName, avatarUrl } = useProfile(client);
|
const { displayName, avatarUrl } = useProfile(client);
|
||||||
const roomName = useRoomName(rtcSession.room);
|
const roomName = useRoomName(rtcSession.room);
|
||||||
const roomAvatar = useRoomAvatar(rtcSession.room);
|
const roomAvatar = useRoomAvatar(rtcSession.room);
|
||||||
|
Loading…
Reference in New Issue
Block a user