2
0
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:
23rd
2022-10-05 13:40:31 +03:00
committed by John Preston
parent 38f5cda800
commit 9b7329b378
8 changed files with 33 additions and 19 deletions

View File

@@ -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(