2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Proof-of-concept custom verify badges.

This commit is contained in:
John Preston
2024-12-10 20:59:32 +04:00
parent 35e40be550
commit 6f18b9b691
25 changed files with 437 additions and 195 deletions

View File

@@ -177,6 +177,11 @@ public:
[[nodiscard]] const std::vector<QString> &usernames() const;
[[nodiscard]] bool isUsernameEditable(QString username) const;
void setVerifyDetails(Ui::VerifyDetails details);
[[nodiscard]] Ui::VerifyDetails *verifyDetails() const {
return _verifyDetails.get();
}
enum class ContactStatus : char {
Unknown,
Contact,
@@ -255,6 +260,7 @@ private:
std::vector<Data::UnavailableReason> _unavailableReasons;
QString _phone;
QString _privateForwardName;
std::unique_ptr<Ui::VerifyDetails> _verifyDetails;
ChannelId _personalChannelId = 0;
MsgId _personalChannelMessageId = 0;