mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Set name / phone texts on-demand.
This commit is contained in:
@@ -241,9 +241,10 @@ public:
|
||||
return (_lastFullUpdate != 0);
|
||||
}
|
||||
|
||||
[[nodiscard]] const Ui::Text::String &nameText() const;
|
||||
[[nodiscard]] int nameVersion() const;
|
||||
[[nodiscard]] const QString &name() const;
|
||||
[[nodiscard]] const QString &shortName() const;
|
||||
[[nodiscard]] const Ui::Text::String &topBarNameText() const;
|
||||
[[nodiscard]] const QString &topBarNameText() const;
|
||||
[[nodiscard]] QString userName() const;
|
||||
|
||||
[[nodiscard]] const base::flat_set<QString> &nameWords() const {
|
||||
@@ -409,11 +410,8 @@ public:
|
||||
[[nodiscard]] const QString &themeEmoji() const;
|
||||
|
||||
const PeerId id;
|
||||
QString name;
|
||||
MTPinputPeer input = MTP_inputPeerEmpty();
|
||||
|
||||
int nameVersion = 1;
|
||||
|
||||
protected:
|
||||
void updateNameDelayed(
|
||||
const QString &newName,
|
||||
@@ -440,7 +438,6 @@ private:
|
||||
bool _userpicHasVideo = false;
|
||||
|
||||
mutable std::unique_ptr<Ui::EmptyUserpic> _userpicEmpty;
|
||||
Ui::Text::String _nameText;
|
||||
|
||||
Data::PeerNotifySettings _notify;
|
||||
|
||||
@@ -450,6 +447,9 @@ private:
|
||||
|
||||
crl::time _lastFullUpdate = 0;
|
||||
|
||||
QString _name;
|
||||
int _nameVersion = 1;
|
||||
|
||||
TimeId _ttlPeriod = 0;
|
||||
|
||||
Settings _settings = PeerSettings(PeerSetting::Unknown);
|
||||
|
Reference in New Issue
Block a user