mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix state assertion in reading requets.
This commit is contained in:
parent
f1c2d4fe3d
commit
91a6632a1b
1 changed files with 2 additions and 1 deletions
|
@ -423,7 +423,6 @@ void Histories::sendReadRequest(not_null<History*> history, State &state) {
|
|||
const auto finished = [=] {
|
||||
const auto state = lookup(history);
|
||||
Assert(state != nullptr);
|
||||
Assert(state->sentReadTill >= tillId);
|
||||
|
||||
if (state->sentReadTill == tillId) {
|
||||
state->sentReadDone = true;
|
||||
|
@ -432,6 +431,8 @@ void Histories::sendReadRequest(not_null<History*> history, State &state) {
|
|||
} else {
|
||||
state->sentReadTill = 0;
|
||||
}
|
||||
} else {
|
||||
Assert(!state->sentReadTill || state->sentReadTill > tillId);
|
||||
}
|
||||
sendReadRequests();
|
||||
finish();
|
||||
|
|
Loading…
Add table
Reference in a new issue