2
0
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:
John Preston
2022-08-09 14:12:19 +03:00
parent ceb7d5f238
commit 8bc807dc40
98 changed files with 426 additions and 260 deletions

View File

@@ -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);