|
|
|
@ -271,9 +271,9 @@ export class AppDownloadManager {
@@ -271,9 +271,9 @@ export class AppDownloadManager {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public getCacheContext(media: MyPhoto | MyDocument, thumbSize: string = 'full'): ThumbCache { |
|
|
|
|
if(media._ === 'photo' && thumbSize !== 'i') { |
|
|
|
|
/* if(media._ === 'photo' && thumbSize !== 'i') { |
|
|
|
|
thumbSize = 'full'; |
|
|
|
|
} |
|
|
|
|
} */ |
|
|
|
|
|
|
|
|
|
const cache = this.thumbsCache[media._][media.id] ?? (this.thumbsCache[media._][media.id] = {}); |
|
|
|
|
return cache[thumbSize] ?? (cache[thumbSize] = {downloaded: 0, url: ''}); |
|
|
|
|