π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] fix chromecast protocol to stringify collection ID before using it
Priyanshu Dangare042901279b75
diff --git a/web/apps/cast/src/services/chromecast-receiver.ts b/web/apps/cast/src/services/chromecast-receiver.tsindex 830a2f9903..20fba84020 100644--- a/web/apps/cast/src/services/chromecast-receiver.ts+++ b/web/apps/cast/src/services/chromecast-receiver.ts@@ -138,13 +138,17 @@ const advertiseCode = (cast: Cast) => {const pairedCollectionID = castReceiver.collectionID?.();// The collection ID in the request (if any).- const collectionID =- data &&++ let collectionID: string | null = null;+ if (typeof data == "object" &&+ data !== null &&"collectionID" in data &&- typeof data.collectionID == "string"- ? data.collectionID- : undefined;+ (typeof data.collectionID == "string" ||+ typeof data.collectionID == "number")+ ) {+ collectionID = data.collectionID.toString();+ }// If the request does not have a collectionID (or if we're not showing// anything currently), forego this check.