mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Add hide / unpin all button in pinned section.
This commit is contained in:
@@ -84,6 +84,7 @@ template <
|
||||
typename = typename PeerType::FullFlags::Change>
|
||||
inline auto PeerFullFlagsValue(PeerType *peer) {
|
||||
Expects(peer != nullptr);
|
||||
|
||||
return peer->fullFlagsValue();
|
||||
}
|
||||
|
||||
@@ -105,10 +106,11 @@ inline auto PeerFullFlagValue(
|
||||
return SingleFlagValue(PeerFullFlagsValue(peer), flag);
|
||||
}
|
||||
|
||||
rpl::producer<bool> CanWriteValue(UserData *user);
|
||||
rpl::producer<bool> CanWriteValue(ChatData *chat);
|
||||
rpl::producer<bool> CanWriteValue(ChannelData *channel);
|
||||
rpl::producer<bool> CanWriteValue(not_null<PeerData*> peer);
|
||||
[[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> CanPinMessagesValue(not_null<PeerData*> peer);
|
||||
|
||||
[[nodiscard]] TimeId SortByOnlineValue(not_null<UserData*> user, TimeId now);
|
||||
[[nodiscard]] crl::time OnlineChangeTimeout(TimeId online, TimeId now);
|
||||
|
Reference in New Issue
Block a user