This commit is contained in:
morethanwords 2021-04-15 14:11:56 +04:00
parent 0b18ea4549
commit d15e5e8f74
2 changed files with 2 additions and 2 deletions

View File

@ -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); const method = (canCache ? apiManager.invokeApiCacheable : apiManager.invokeApi).bind(apiManager);
let apiPromise: Promise<any>; let apiPromise: Promise<any>;

View File

@ -138,7 +138,7 @@ export class AppPhotosManager {
offset: 0, offset: 0,
limit, limit,
max_id: maxId max_id: maxId
}).then((photosResult) => { }, {cacheSeconds: 60}).then((photosResult) => {
appUsersManager.saveApiUsers(photosResult.users); appUsersManager.saveApiUsers(photosResult.users);
const photoIds: string[] = photosResult.photos.map((photo, idx) => { const photoIds: string[] = photosResult.photos.map((photo, idx) => {
photosResult.photos[idx] = this.savePhoto(photo, {type: 'profilePhoto', peerId: userId}); photosResult.photos[idx] = this.savePhoto(photo, {type: 'profilePhoto', peerId: userId});