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

Implement personal channel selector.

This commit is contained in:
John Preston
2024-03-29 11:21:57 +04:00
parent ab74ed0fa7
commit 280d69d346
8 changed files with 238 additions and 26 deletions

View File

@@ -205,6 +205,10 @@ public:
[[nodiscard]] const Data::BusinessDetails &businessDetails() const;
void setBusinessDetails(Data::BusinessDetails details);
[[nodiscard]] ChannelId personalChannelId() const;
[[nodiscard]] MsgId personalChannelMessageId() const;
void setPersonalChannel(ChannelId channelId, MsgId messageId);
private:
auto unavailableReasons() const
-> const std::vector<Data::UnavailableReason> & override;
@@ -223,6 +227,9 @@ private:
QString _phone;
QString _privateForwardName;
ChannelId _personalChannelId = 0;
MsgId _personalChannelMessageId = 0;
uint64 _accessHash = 0;
static constexpr auto kInaccessibleAccessHashOld
= 0xFFFFFFFFFFFFFFFFULL;