From a5caebe8904544a87fdc483307335eeb79aaac7e Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 21 Dec 2021 14:31:48 +0000 Subject: [PATCH] Toggle reactions by the button. --- Telegram/SourceFiles/history/history_inner_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 918ad6ba6..42c15a6b0 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -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());