2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Implement collectible username / phone info boxes.

This commit is contained in:
John Preston
2024-04-02 15:35:53 +04:00
parent 22f504ca21
commit 1061fb6c85
40 changed files with 630 additions and 75 deletions

View File

@@ -1230,7 +1230,7 @@ PeerData *Session::peerByUsername(const QString &username) const {
const auto uname = username.trimmed();
for (const auto &[peerId, peer] : _peers) {
if (peer->isLoaded()
&& !peer->userName().compare(uname, Qt::CaseInsensitive)) {
&& !peer->username().compare(uname, Qt::CaseInsensitive)) {
return peer.get();
}
}