Toggle reactions by the button.

This commit is contained in:
John Preston 2021-12-21 14:31:48 +00:00
parent 2991c3c17f
commit a5caebe890

View file

@ -231,7 +231,7 @@ HistoryInner::HistoryInner(
_reactionsManager->chosen(
) | rpl::start_with_next([=](ChosenReaction reaction) {
if (const auto item = session().data().message(reaction.context)) {
item->addReaction(reaction.emoji);
item->toggleReaction(reaction.emoji);
}
}, lifetime());