Fix room not found view

This commit is contained in:
Robert Long 2022-02-15 15:00:06 -08:00
parent 6866d662f7
commit cb07ce32cb

View file

@ -22,7 +22,13 @@ export function GroupCallLoader({ client, roomId, viaServers, children }) {
);
}
if (error && error.errcode === "M_UNKNOWN" && isLocalRoomId(roomId)) {
if (
error &&
(error.errcode === "M_NOT_FOUND" ||
(error.message &&
error.message.indexOf("Failed to fetch alias") !== -1)) &&
isLocalRoomId(roomId)
) {
return <RoomNotFoundView client={client} roomId={roomId} />;
}