2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

API scheme updated to layer 75.

This commit is contained in:
John Preston
2018-01-03 17:37:21 +03:00
parent 05e36a064f
commit 31234cb487
7 changed files with 154 additions and 60 deletions

View File

@@ -1492,13 +1492,13 @@ void DialogsInner::itemRemoved(not_null<const HistoryItem*> item) {
}
void DialogsInner::dialogsReceived(const QVector<MTPDialog> &added) {
for_const (auto &dialog, added) {
for (const auto &dialog : added) {
if (dialog.type() != mtpc_dialog) {
continue;
}
auto &d = dialog.c_dialog();
auto peerId = peerFromMTP(d.vpeer);
const auto &d = dialog.c_dialog();
const auto peerId = peerFromMTP(d.vpeer);
if (!peerId) {
continue;
}