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
1 changed files with 3 additions and 1 deletions

View File

@ -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,