2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 17:06:03 +00:00

Handle disabling direct messages in channel.

This commit is contained in:
John Preston
2025-06-05 14:58:45 +04:00
parent 73ea86ceeb
commit dc61faace1
8 changed files with 66 additions and 10 deletions

View File

@@ -81,6 +81,7 @@ enum class ChannelDataFlag : uint64 {
AutoTranslation = (1ULL << 38),
Monoforum = (1ULL << 39),
MonoforumAdmin = (1ULL << 40),
MonoforumDisabled = (1ULL << 41),
ForumTabs = (1ULL << 41),
};
inline constexpr bool is_flag_type(ChannelDataFlag) { return true; };
@@ -432,6 +433,7 @@ public:
void setMonoforumLink(ChannelData *link);
[[nodiscard]] ChannelData *monoforumLink() const;
[[nodiscard]] bool monoforumDisabled() const;
void ptsInit(int32 pts) {
_ptsWaiter.init(pts);