mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Removed username from public data members of UserData.
This commit is contained in:
@@ -119,6 +119,12 @@ void UserData::setName(const QString &newFirstName, const QString &newLastName,
|
||||
updateNameDelayed(newFullName, newPhoneName, newUsername);
|
||||
}
|
||||
|
||||
void UserData::setUsername(const QString &username) {
|
||||
if (_username != username) {
|
||||
_username = username;
|
||||
}
|
||||
}
|
||||
|
||||
void UserData::setPhone(const QString &newPhone) {
|
||||
if (_phone != newPhone) {
|
||||
_phone = newPhone;
|
||||
@@ -281,6 +287,10 @@ bool UserData::canShareThisContactFast() const {
|
||||
return !_phone.isEmpty();
|
||||
}
|
||||
|
||||
const QString &UserData::username() const {
|
||||
return _username;
|
||||
}
|
||||
|
||||
const QString &UserData::phone() const {
|
||||
return _phone;
|
||||
}
|
||||
|
Reference in New Issue
Block a user