Fix crash on reading in support mode.

This commit is contained in:
John Preston 2020-02-21 11:11:27 +04:00
parent f133210db3
commit a954b459b4

View File

@ -190,7 +190,9 @@ void Histories::readClientSideMessage(not_null<HistoryItem*> item) {
void Histories::sendPendingReadInbox(not_null<History*> history) {
if (const auto state = lookup(history)) {
if (state->readTill && state->readWhen) {
if (state->readTill
&& state->readWhen
&& state->readWhen != kReadRequestSent) {
state->readWhen = 0;
sendReadRequests();
}