mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix simultaneous read history requests.
This commit is contained in:
parent
d83cf0e560
commit
c207a7c0d3
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ void Histories::sendReadRequests() {
|
|||
const auto now = crl::now();
|
||||
auto next = std::optional<crl::time>();
|
||||
for (auto &[history, state] : _states) {
|
||||
if (!state.readTill) {
|
||||
if (!state.readTill || state.readWhen == kReadRequestSent) {
|
||||
continue;
|
||||
} else if (state.readWhen <= now) {
|
||||
sendReadRequest(history, state);
|
||||
|
|
Loading…
Add table
Reference in a new issue