π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix jumping
Manav Rathie6f26e62ae76
diff --git a/web/packages/new/photos/services/ml/worker.ts b/web/packages/new/photos/services/ml/worker.tsindex d6e2e17a43..bbec976a34 100644--- a/web/packages/new/photos/services/ml/worker.ts+++ b/web/packages/new/photos/services/ml/worker.ts@@ -203,7 +203,12 @@ export class MLWorker {const liveQ = this.liveQ;this.liveQ = [];- this.state = "indexing";++ // Retain the previous state if it was one of the indexing states. This+ // prevents jumping between "fetching" and "indexing" being shown in the+ // UI during the initial load.+ if (this.state != "fetching" && this.state != "indexing")+ this.state = "indexing";// Use the liveQ if present, otherwise get the next batch to backfill.const items = liveQ.length ? liveQ : await this.backfillQ();