From d9ed3a7d3f4a6407027d4e95046a4f12a9646594 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 22 Mar 2024 12:46:03 +0400 Subject: [PATCH] Remove for-development-only save document action. Regression was introduced in 205479fccc. --- .../SourceFiles/history/history_inner_widget.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index c5f201f516..5a8f09ffd9 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -7,7 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "history/history_inner_widget.h" -#include "chat_helpers/stickers_emoji_pack.h" #include "core/file_utilities.h" #include "core/click_handler_types.h" #include "history/history_item_helpers.h" @@ -33,7 +32,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "ui/effects/message_sending_animation_controller.h" #include "ui/effects/reaction_fly_animation.h" #include "ui/text/text_options.h" -#include "ui/text/text_isolated_emoji.h" #include "ui/boxes/report_box.h" #include "ui/layers/generic_box.h" #include "ui/controls/delete_message_context_action.h" @@ -2251,17 +2249,6 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) { } }; - if (const auto item = _dragStateItem) { - const auto emojiStickers = &session->emojiStickersPack(); - if (const auto view = item->mainView()) { - if (const auto isolated = view->isolatedEmoji()) { - if (const auto sticker = emojiStickers->stickerForEmoji(isolated)) { - addDocumentActions(sticker.document, item); - } - } - } - } - const auto asGroup = !Element::Moused() || (Element::Moused() != Element::Hovered()) || (Element::Moused()->pointState(