mirror of
https://github.com/vector-im/element-call.git
synced 2026-04-06 07:20:25 +00:00
committed by
Andrew Ferrazzutti
parent
5bab9b0858
commit
6418316aed
@@ -132,9 +132,9 @@ export const RoomPage: FC = () => {
|
||||
<>
|
||||
{content}
|
||||
{/* On Android and iOS, show a prompt to launch the mobile app. */}
|
||||
{appPrompt && (platform === "android" || platform === "ios") && (
|
||||
<AppSelectionModal roomId={roomId} />
|
||||
)}
|
||||
{appPrompt &&
|
||||
(platform === "android" || platform === "ios") &&
|
||||
roomId && <AppSelectionModal roomId={roomId} />}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -157,7 +157,7 @@ export const useLoadGroupCall = (
|
||||
room = client.getRoom(roomSummary.room_id);
|
||||
if (room?.getMyMembership() === KnownMembership.Join) {
|
||||
// room already joined so we are done here already.
|
||||
return room;
|
||||
return room!;
|
||||
} else if (room?.getMyMembership() === KnownMembership.Ban) {
|
||||
throw new BannedError();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user