2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update API scheme to layer 118.

This commit is contained in:
John Preston
2020-08-25 11:48:18 +04:00
parent 883a62c0a2
commit 49c230b898
5 changed files with 20 additions and 10 deletions

View File

@@ -1293,10 +1293,10 @@ void MainWidget::viewsIncrementDone(QVector<MTPint> ids, const MTPVector<MTPint>
for (auto i = _viewsIncrementRequests.begin(); i != _viewsIncrementRequests.cend(); ++i) {
if (i->second == requestId) {
const auto peer = i->first;
ChannelId channel = peerToChannel(peer->id);
const auto channel = peerToChannel(peer->id);
for (int32 j = 0, l = ids.size(); j < l; ++j) {
if (HistoryItem *item = session().data().message(channel, ids.at(j).v)) {
item->setViewsCount(v.at(j).v);
if (const auto item = session().data().message(channel, ids[j].v)) {
item->setViewsCount(v[j].v);
}
}
_viewsIncrementRequests.erase(i);