2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

search channel by username

This commit is contained in:
John Preston
2015-09-13 22:15:45 +03:00
parent c3270d6b66
commit eaacc1b7e2
4 changed files with 32 additions and 1 deletions

View File

@@ -833,7 +833,7 @@ void DialogsListWidget::peopleReceived(const QString &query, const QVector<MTPPe
for (QVector<MTPPeer>::const_iterator i = people.cbegin(), e = people.cend(); i != e; ++i) {
PeerId peerId = peerFromMTP(*i);
History *h = App::historyLoaded(peerId);
if (h && !h->isEmpty()) continue; // skip dialogs
if (h && !h->dialogs.isEmpty()) continue; // skip dialogs
peopleResults.push_back(App::peer(peerId));
}