mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix crash on reading in support mode.
This commit is contained in:
parent
f133210db3
commit
a954b459b4
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue