mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Fix crash on reading in support mode.
This commit is contained in:
parent
f133210db3
commit
a954b459b4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user