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