π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
401
Manav Rathib443eebec3d7
diff --git a/web/apps/cast/src/services/render.ts b/web/apps/cast/src/services/render.tsindex ea94218038..ef181b19f8 100644--- a/web/apps/cast/src/services/render.ts+++ b/web/apps/cast/src/services/render.ts@@ -15,7 +15,6 @@ import {getCastThumbnailURL,getEndpoint,} from "@ente/shared/network/api";-import { HttpStatusCode } from "axios";import type { CastData } from "services/cast-data";import { detectMediaMIMEType } from "services/detect-type";import {@@ -97,10 +96,7 @@ export const renderableImageURLs = async function* (castData: CastData) {urls.push(await createRenderableURL(castToken, file));haveEligibleFiles = true;} catch (e) {- if (- e instanceof ApiError &&- e.httpStatusCode == HttpStatusCode.Unauthorized- ) {+ if (e instanceof ApiError && e.httpStatusCode == 401) {// The token has expired. Rethrow the error, which will// bring us back to the pairing page.throw e;