From 3aab2a88aa0c9a25ef72c0f478560a7e613a811d Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 18 Feb 2024 20:56:51 +0400 Subject: [PATCH] Remove helper temporary code. --- .../SourceFiles/history/history_inner_widget.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 270aedf97..b85703cf0 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -84,8 +84,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "styles/style_chat.h" #include "styles/style_menu_icons.h" -#include "chat_helpers/stickers_emoji_pack.h" - #include #include #include @@ -2322,19 +2320,6 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) { ? reinterpret_cast( link->property(kDocumentLinkMediaProperty).toULongLong()) : nullptr; - if (const auto media = _dragStateItem->media()) { - if (const auto document = media->document()) { - addDocumentActions(document, _dragStateItem); - } - } - if (_dragStateItem) { - if (const auto emoji = _dragStateItem->mainView()->isolatedEmoji()) { - const auto emojiStickers = &_dragStateItem->history()->session().emojiStickersPack(); - if (const auto sticker = emojiStickers->stickerForEmoji(emoji)) { - addDocumentActions(sticker.document, _dragStateItem); - } - } - } if (lnkPhoto || lnkDocument) { const auto item = _dragStateItem; const auto itemId = item ? item->fullId() : FullMsgId();