mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00: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