2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Implement PoC custom reaction selection.

This commit is contained in:
John Preston
2022-08-16 18:52:49 +03:00
parent cece9cf09b
commit 09124f6424
24 changed files with 449 additions and 152 deletions

View File

@@ -21,6 +21,7 @@ class Session;
namespace Data {
struct Reaction;
struct ReactionsFilter;
template <typename ChangeType, typename Error, typename Generator>
inline auto FlagsValueWithMask(
@@ -133,10 +134,9 @@ inline auto PeerFullFlagValue(
int size,
ImageRoundRadius radius);
[[nodiscard]] std::optional<base::flat_set<QString>> PeerAllowedReactions(
[[nodiscard]] ReactionsFilter PeerReactionsFilter(not_null<PeerData*> peer);
[[nodiscard]] rpl::producer<ReactionsFilter> PeerReactionsFilterValue(
not_null<PeerData*> peer);
[[nodiscard]] auto PeerAllowedReactionsValue(not_null<PeerData*> peer)
-> rpl::producer<std::optional<base::flat_set<QString>>>;
[[nodiscard]] rpl::producer<int> UniqueReactionsLimitValue(
not_null<Main::Session*> session);