2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix crashes in fast simultaneous readings.

Fixes #7264, fixes #7259.
This commit is contained in:
John Preston
2020-02-23 11:54:15 +04:00
parent 50bf4dad36
commit 496faef0b3
2 changed files with 48 additions and 44 deletions

View File

@@ -86,9 +86,10 @@ private:
struct State {
base::flat_map<int, PostponedHistoryRequest> postponed;
base::flat_map<int, SentRequest> sent;
crl::time readWhen = 0;
MsgId readTill = 0;
MsgId readTillSent = 0;
MsgId willReadTill = 0;
MsgId sentReadTill = 0;
crl::time willReadWhen = 0;
bool sentReadDone = false;
bool postponedRequestEntry = false;
};