fix localOnly stuck in loop

This commit is contained in:
Abhinav 2023-12-11 22:30:11 +05:30
parent e0a6cac7cd
commit 173bee6001

View file

@ -211,7 +211,7 @@ class DownloadManagerImpl {
this.thumbnailObjectURLPromises.set(file.id, thumbURLPromise);
}
let thumb = await this.thumbnailObjectURLPromises.get(file.id);
if (!thumb) {
if (!thumb && !localOnly) {
this.thumbnailObjectURLPromises.delete(file.id);
thumb = await this.getThumbnailForPreview(file, localOnly);
}