mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix simultaneous read history requests.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user