mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Make sure we request pending dialog entries.
This commit is contained in:
parent
91fb9917bc
commit
f2ef109940
2 changed files with 6 additions and 0 deletions
|
@ -238,6 +238,10 @@ void Histories::requestDialogEntry(
|
|||
if (!ok) {
|
||||
return;
|
||||
}
|
||||
postponeRequestDialogEntries();
|
||||
}
|
||||
|
||||
void Histories::postponeRequestDialogEntries() {
|
||||
if (_dialogRequestsPending.size() > 1) {
|
||||
return;
|
||||
}
|
||||
|
@ -655,6 +659,7 @@ void Histories::finishSentRequest(
|
|||
Assert(ok);
|
||||
_dialogRequests.erase(i);
|
||||
state->postponedRequestEntry = false;
|
||||
postponeRequestDialogEntries();
|
||||
}
|
||||
checkEmptyState(history);
|
||||
}
|
||||
|
|
|
@ -105,6 +105,7 @@ private:
|
|||
int id);
|
||||
[[nodiscard]] bool postponeHistoryRequest(const State &state) const;
|
||||
[[nodiscard]] bool postponeEntryRequest(const State &state) const;
|
||||
void postponeRequestDialogEntries();
|
||||
|
||||
void sendDialogRequests();
|
||||
void applyPeerDialogs(const MTPmessages_PeerDialogs &dialogs);
|
||||
|
|
Loading…
Add table
Reference in a new issue