Skip to content

Commit 100358f

Browse files
committed
misc
1 parent 45f6537 commit 100358f

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/lib/appManagers/appMessagesManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,7 @@ export class AppMessagesManager extends AppManager {
24312431
let dialogsLength = 0;
24322432
if(!isSearch) for(let i = 0, length = folderDialogs.length; i < length; ++i) {
24332433
const dialog = folderDialogs[i];
2434-
if(getServerMessageId(dialog.top_message) || dialog.draft) {
2434+
if(getServerMessageId(dialog.top_message) || (dialog as Dialog).draft) {
24352435
++dialogsLength;
24362436
} else {
24372437
this.log.error('something strange with dialog', dialog);

src/lib/appManagers/appStickersManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ export class AppStickersManager extends AppManager {
9292
this.getGreetingSticker(true);
9393
}, 5000);
9494
}
95-
});
9695

97-
this.rootScope.addEventListener('app_config', () => this.onStickersUpdated('faved', true));
96+
this.rootScope.addEventListener('app_config', () => this.onStickersUpdated('faved', true));
97+
});
9898

9999
this.apiUpdatesManager.addMultipleEventsListeners({
100100
updateNewStickerSet: (update) => {

src/lib/mtproto/apiManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ export class ApiManager extends ApiManagerMethods {
9999

100100
// * Make sure that the used autologin_token is no more than 10000 seconds old
101101
// * https://core.telegram.org/api/url-authorization
102-
const REFRESH_APP_CONFIG_INTERVAL = (10000 - 30) * 1000;
102+
const REFRESH_CONFIG_INTERVAL = (10000 - 30) * 1000;
103103
setInterval(() => {
104104
this.getConfig(true);
105-
}, REFRESH_APP_CONFIG_INTERVAL);
105+
}, REFRESH_CONFIG_INTERVAL);
106106
}
107107

108108
protected after() {

src/lib/mtproto/api_methods.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export default abstract class ApiManagerMethods extends AppManager {
6565
}
6666

6767
protected after() {
68-
return;
6968
return this.appStateManager.getState().then((state) => {
7069
this.applyAppConfig(state.appConfig, false);
7170
});

0 commit comments

Comments
 (0)