From a954b459b49bc84508399763dda1553a703c3ee0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 21 Feb 2020 11:11:27 +0400 Subject: [PATCH] Fix crash on reading in support mode. --- Telegram/SourceFiles/data/data_histories.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_histories.cpp b/Telegram/SourceFiles/data/data_histories.cpp index f3516d2ca0..d788229652 100644 --- a/Telegram/SourceFiles/data/data_histories.cpp +++ b/Telegram/SourceFiles/data/data_histories.cpp @@ -190,7 +190,9 @@ void Histories::readClientSideMessage(not_null item) { void Histories::sendPendingReadInbox(not_null history) { if (const auto state = lookup(history)) { - if (state->readTill && state->readWhen) { + if (state->readTill + && state->readWhen + && state->readWhen != kReadRequestSent) { state->readWhen = 0; sendReadRequests(); }