2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Check replies_pts before applying.

Fixes #9062.
This commit is contained in:
John Preston
2020-11-17 18:05:35 +03:00
parent ed50aa0d8e
commit 4f6f654e34
4 changed files with 23 additions and 1 deletions

View File

@@ -791,6 +791,10 @@ void Updates::mtpUpdateReceived(const MTPUpdates &updates) {
}
}
int32 Updates::pts() const {
return _ptsWaiter.current();
}
void Updates::updateOnline() {
updateOnline(false);
}

View File

@@ -33,6 +33,8 @@ public:
void applyUpdatesNoPtsCheck(const MTPUpdates &updates);
void applyUpdateNoPtsCheck(const MTPUpdate &update);
[[nodiscard]] int32 pts() const;
void updateOnline();
[[nodiscard]] bool isIdle() const;
void checkIdleFinish();