fix types

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2024-04-03 00:11:07 +02:00
committed by Andrew Ferrazzutti
parent 5bab9b0858
commit 6418316aed
2 changed files with 4 additions and 4 deletions

View File

@@ -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} />}
</>
);
};

View File

@@ -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 {