Build
This commit is contained in:
parent
0b18ea4549
commit
d15e5e8f74
@ -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>;
|
||||||
|
@ -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});
|
||||||
|
Loading…
Reference in New Issue
Block a user