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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user