Browse Source

Build

master
morethanwords 4 years ago
parent
commit
d15e5e8f74
  1. 2
      src/lib/appManagers/appMessagesManager.ts
  2. 2
      src/lib/appManagers/appPhotosManager.ts

2
src/lib/appManagers/appMessagesManager.ts

@ -3472,7 +3472,7 @@ export class AppMessagesManager { @@ -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<any>;

2
src/lib/appManagers/appPhotosManager.ts

@ -138,7 +138,7 @@ export class AppPhotosManager { @@ -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});

Loading…
Cancel
Save