mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Fix simultaneous read history requests.
This commit is contained in:
parent
d83cf0e560
commit
c207a7c0d3
@ -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…
Reference in New Issue
Block a user