mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Improved shared story layout.
This commit is contained in:
@@ -742,11 +742,12 @@ void Stories::sendResolveRequests() {
|
||||
auto leftToSend = kMaxResolveTogether;
|
||||
auto byPeer = base::flat_map<PeerId, QVector<MTPint>>();
|
||||
for (auto i = begin(_resolvePending); i != end(_resolvePending);) {
|
||||
auto &[peerId, ids] = *i;
|
||||
const auto peerId = i->first;
|
||||
auto &ids = i->second;
|
||||
auto &sent = _resolveSent[peerId];
|
||||
if (ids.size() <= leftToSend) {
|
||||
sent = base::take(ids);
|
||||
i = _resolvePending.erase(i);
|
||||
i = _resolvePending.erase(i); // Invalidates `ids`.
|
||||
leftToSend -= int(sent.size());
|
||||
} else {
|
||||
sent = {
|
||||
|
Reference in New Issue
Block a user