refactor: app init event (#17937)

This commit is contained in:
Jason Rasmussen 2025-04-28 14:48:33 -04:00 committed by GitHub
parent 895b2bf5cd
commit 7f69abbf0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 81 additions and 75 deletions

View file

@ -1,6 +1,7 @@
import { authManager } from '$lib/managers/auth-manager.svelte';
import { UploadState } from '$lib/models/upload-asset';
import { uploadAssetsStore } from '$lib/stores/upload';
import { getKey, uploadRequest } from '$lib/utils';
import { uploadRequest } from '$lib/utils';
import { addAssetsToAlbum } from '$lib/utils/asset-utils';
import { ExecutorQueue } from '$lib/utils/executor-queue';
import {
@ -134,7 +135,7 @@ async function fileUploader(
}
let responseData: { id: string; status: AssetMediaStatus; isTrashed?: boolean } | undefined;
const key = getKey();
const key = authManager.key;
if (crypto?.subtle?.digest && !key) {
uploadAssetsStore.updateItem(deviceAssetId, { message: $t('asset_hashing') });
await tick();