Browse Source

Fix freezing chats when were rendering wrong thumb

master
Eduard Kuzmenko 4 years ago
parent
commit
10d97d9969
  1. 4
      src/lib/appManagers/appDownloadManager.ts

4
src/lib/appManagers/appDownloadManager.ts

@ -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: ''});

Loading…
Cancel
Save