From d15e5e8f749fe0ece2280b7a98119550bc904dbb Mon Sep 17 00:00:00 2001 From: morethanwords Date: Thu, 15 Apr 2021 14:11:56 +0400 Subject: [PATCH] Build --- src/lib/appManagers/appMessagesManager.ts | 2 +- src/lib/appManagers/appPhotosManager.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/appManagers/appMessagesManager.ts b/src/lib/appManagers/appMessagesManager.ts index db989b25..2749b9fe 100644 --- a/src/lib/appManagers/appMessagesManager.ts +++ b/src/lib/appManagers/appMessagesManager.ts @@ -3472,7 +3472,7 @@ export class AppMessagesManager { }); } - const canCache = (['inputMessagesFilterChatPhotos', 'inputMessagesFilterPinned'] as MyInputMessagesFilter[]).includes(inputFilter._); + const canCache = false && (['inputMessagesFilterChatPhotos', 'inputMessagesFilterPinned'] as MyInputMessagesFilter[]).includes(inputFilter._); const method = (canCache ? apiManager.invokeApiCacheable : apiManager.invokeApi).bind(apiManager); let apiPromise: Promise; diff --git a/src/lib/appManagers/appPhotosManager.ts b/src/lib/appManagers/appPhotosManager.ts index 76e1ddb6..9a0dd583 100644 --- a/src/lib/appManagers/appPhotosManager.ts +++ b/src/lib/appManagers/appPhotosManager.ts @@ -138,7 +138,7 @@ export class AppPhotosManager { offset: 0, limit, max_id: maxId - }).then((photosResult) => { + }, {cacheSeconds: 60}).then((photosResult) => { appUsersManager.saveApiUsers(photosResult.users); const photoIds: string[] = photosResult.photos.map((photo, idx) => { photosResult.photos[idx] = this.savePhoto(photo, {type: 'profilePhoto', peerId: userId});