mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Toggle reactions by the button.
This commit is contained in:
parent
2991c3c17f
commit
a5caebe890
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ HistoryInner::HistoryInner(
|
||||||
_reactionsManager->chosen(
|
_reactionsManager->chosen(
|
||||||
) | rpl::start_with_next([=](ChosenReaction reaction) {
|
) | rpl::start_with_next([=](ChosenReaction reaction) {
|
||||||
if (const auto item = session().data().message(reaction.context)) {
|
if (const auto item = session().data().message(reaction.context)) {
|
||||||
item->addReaction(reaction.emoji);
|
item->toggleReaction(reaction.emoji);
|
||||||
}
|
}
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue