Fix a click on "via @bot" of a sticker.

Fixes #24888.
This commit is contained in:
John Preston 2022-08-08 16:02:09 +03:00
parent 75ee74ff1f
commit 068eb3fcd1

View file

@ -1788,11 +1788,13 @@ void HistoryInner::mouseActionFinish(
_wasSelectedText = false; _wasSelectedText = false;
if (activated) { if (activated) {
mouseActionCancel();
const auto pressedItemId = pressedItemView const auto pressedItemId = pressedItemView
? pressedItemView->data()->fullId() ? pressedItemView->data()->fullId()
: _mouseActionItem
? _mouseActionItem->fullId()
: FullMsgId(); : FullMsgId();
const auto weak = base::make_weak(_controller.get()); const auto weak = base::make_weak(_controller.get());
mouseActionCancel();
ActivateClickHandler( ActivateClickHandler(
window(), window(),
activated, activated,