From 068eb3fcd1db2754bedf7b9ee42b9f127089b7a8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 8 Aug 2022 16:02:09 +0300 Subject: [PATCH] Fix a click on "via @bot" of a sticker. Fixes #24888. --- Telegram/SourceFiles/history/history_inner_widget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 03e711a56b..cb19cae57b 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -1788,11 +1788,13 @@ void HistoryInner::mouseActionFinish( _wasSelectedText = false; if (activated) { - mouseActionCancel(); const auto pressedItemId = pressedItemView ? pressedItemView->data()->fullId() + : _mouseActionItem + ? _mouseActionItem->fullId() : FullMsgId(); const auto weak = base::make_weak(_controller.get()); + mouseActionCancel(); ActivateClickHandler( window(), activated,