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,