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