π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
intercept
Manav Rathi22539c2a2faa
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.tsindex f26b4d2f24..a12047293d 100644--- a/web/packages/gallery/components/viewer/photoswipe.ts+++ b/web/packages/gallery/components/viewer/photoswipe.ts@@ -842,19 +842,32 @@ export class FileViewerPhotoSwipe {if (currentFileAnnotation().showDownload) handleDownload();};- const onVideoQualityChange = () => {+ const onVideoQualityChange = (e: Event) => {if (shouldIgnoreNextVideoQualityChange) {// Ignore changes that we ourselves initiated on slide change.shouldIgnoreNextVideoQualityChange = false;return;}+ const { file, itemData } = currentAnnotatedFile();+ const fileID = file.id;++ if (+ e.target instanceof MediaChromeMenu &&+ e.target.value == pt("Original") &&+ !itemData.videoPlaylistURL+ ) {+ // The user is trying to switch to "auto" video quality, but+ // there is no streamable variant yet.+ console.log("na", itemData);+ return;+ }+// Currently there are only two entries in the video quality menu,// and the callback only gets invoked if the value gets changed from// the current value. So we can assume toggle semantics when// implementing the logic below.- const fileID = currentAnnotatedFile().file.id;forgetItemDataForFileID(fileID);if (originalVideoFileIDs.has(fileID)) {originalVideoFileIDs.delete(fileID);