diff --git a/Telegram/SourceFiles/data/data_histories.cpp b/Telegram/SourceFiles/data/data_histories.cpp index 7b4aa17ca0..b486639ebb 100644 --- a/Telegram/SourceFiles/data/data_histories.cpp +++ b/Telegram/SourceFiles/data/data_histories.cpp @@ -423,7 +423,6 @@ void Histories::sendReadRequest(not_null 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, State &state) { } else { state->sentReadTill = 0; } + } else { + Assert(!state->sentReadTill || state->sentReadTill > tillId); } sendReadRequests(); finish();