mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Implement correct ForumTopic::canWrite logic.
This commit is contained in:
@@ -21,6 +21,7 @@ class Session;
|
||||
namespace Data {
|
||||
|
||||
struct Reaction;
|
||||
class ForumTopic;
|
||||
|
||||
template <typename ChangeType, typename Error, typename Generator>
|
||||
inline auto FlagsValueWithMask(
|
||||
@@ -102,8 +103,13 @@ inline auto PeerFullFlagValue(
|
||||
|
||||
[[nodiscard]] rpl::producer<bool> CanWriteValue(UserData *user);
|
||||
[[nodiscard]] rpl::producer<bool> CanWriteValue(ChatData *chat);
|
||||
[[nodiscard]] rpl::producer<bool> CanWriteValue(ChannelData *channel);
|
||||
[[nodiscard]] rpl::producer<bool> CanWriteValue(not_null<PeerData*> peer);
|
||||
[[nodiscard]] rpl::producer<bool> CanWriteValue(
|
||||
ChannelData *channel,
|
||||
bool checkForForum = true);
|
||||
[[nodiscard]] rpl::producer<bool> CanWriteValue(
|
||||
not_null<PeerData*> peer,
|
||||
bool checkForForum = true);
|
||||
[[nodiscard]] rpl::producer<bool> CanWriteValue(not_null<ForumTopic*> topic);
|
||||
[[nodiscard]] rpl::producer<bool> CanPinMessagesValue(
|
||||
not_null<PeerData*> peer);
|
||||
[[nodiscard]] rpl::producer<bool> CanManageGroupCallValue(
|
||||
|
Reference in New Issue
Block a user