2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Return native verify icon to the right.

This commit is contained in:
John Preston
2024-12-31 17:18:59 +04:00
parent c23b533704
commit a7321c9beb
33 changed files with 167 additions and 233 deletions

View File

@@ -193,10 +193,10 @@ public:
[[nodiscard]] const std::vector<QString> &usernames() const;
[[nodiscard]] bool isUsernameEditable(QString username) const;
void setVerifyDetails(Ui::VerifyDetails details);
void setVerifyDetailsIcon(DocumentId iconId);
[[nodiscard]] Ui::VerifyDetails *verifyDetails() const {
return _verifyDetails.get();
void setBotVerifyDetails(Ui::BotVerifyDetails details);
void setBotVerifyDetailsIcon(DocumentId iconId);
[[nodiscard]] Ui::BotVerifyDetails *botVerifyDetails() const {
return _botVerifyDetails.get();
}
enum class ContactStatus : char {
@@ -277,7 +277,7 @@ private:
std::vector<Data::UnavailableReason> _unavailableReasons;
QString _phone;
QString _privateForwardName;
std::unique_ptr<Ui::VerifyDetails> _verifyDetails;
std::unique_ptr<Ui::BotVerifyDetails> _botVerifyDetails;
ChannelId _personalChannelId = 0;
MsgId _personalChannelMessageId = 0;
@@ -295,7 +295,7 @@ void ApplyUserUpdate(not_null<UserData*> user, const MTPDuserFull &update);
[[nodiscard]] StarRefProgram ParseStarRefProgram(
const MTPStarRefProgram *program);
[[nodiscard]] Ui::VerifyDetails ParseVerifyDetails(
[[nodiscard]] Ui::BotVerifyDetails ParseBotVerifyDetails(
const MTPBotVerification *info);
} // namespace Data