mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Removed username from public data members of ChannelData.
This commit is contained in:
@@ -101,6 +101,16 @@ void ChannelData::setName(
|
||||
updateNameDelayed(newName.isEmpty() ? name() : newName, {}, newUsername);
|
||||
}
|
||||
|
||||
void ChannelData::setUsername(const QString &username) {
|
||||
if (_username != username) {
|
||||
_username = username;
|
||||
}
|
||||
}
|
||||
|
||||
QString ChannelData::username() const {
|
||||
return _username;
|
||||
}
|
||||
|
||||
void ChannelData::setAccessHash(uint64 accessHash) {
|
||||
access = accessHash;
|
||||
input = MTP_inputPeerChannel(
|
||||
|
Reference in New Issue
Block a user