mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] cached public collectionID
This commit is contained in:
parent
1bcacc921b
commit
ac656cfe9f
@ -82,7 +82,7 @@ class DiffFetcher {
|
||||
'diff items ( ${sharedFiles.length} updated) in ${DateTime.now().difference(startTime).inMilliseconds}ms');
|
||||
return sharedFiles;
|
||||
} catch (e, s) {
|
||||
_logger.severe("Failed to decrypt collection $e", s);
|
||||
_logger.severe("Failed to decrypt collection ", e, s);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
@ -97,9 +97,8 @@ Future<File?> downloadAndDecrypt(
|
||||
EnteFile file, {
|
||||
ProgressCallback? progressCallback,
|
||||
}) async {
|
||||
final authToken =
|
||||
await CollectionsService.instance.getPublicAlbumToken(file.collectionID!);
|
||||
if (authToken != null) {
|
||||
if (await CollectionsService.instance
|
||||
.isPublicCollection(file.collectionID!)) {
|
||||
final authToken = await CollectionsService.instance
|
||||
.getPublicAlbumToken(file.collectionID!);
|
||||
|
||||
|
@ -161,9 +161,10 @@ Future<void> _downloadAndDecryptThumbnail(FileDownloadItem item) async {
|
||||
final file = item.file;
|
||||
Uint8List encryptedThumbnail;
|
||||
try {
|
||||
final authToken = await CollectionsService.instance
|
||||
.getPublicAlbumToken(file.collectionID!);
|
||||
if (authToken != null) {
|
||||
if (await CollectionsService.instance
|
||||
.isPublicCollection(file.collectionID!)) {
|
||||
final authToken = await CollectionsService.instance
|
||||
.getPublicAlbumToken(file.collectionID!);
|
||||
final authJWTToken = await CollectionsService.instance
|
||||
.getPublicAlbumTokenJWT(file.collectionID!);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user