From 075ced2742e81eb663688eb3742cc7c460a911d2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 25 Jul 2022 13:32:00 +0300 Subject: [PATCH] Remove emoji-set preview context menu. --- Telegram/SourceFiles/boxes/sticker_set_box.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/sticker_set_box.cpp b/Telegram/SourceFiles/boxes/sticker_set_box.cpp index d765dbf22..05c0f2e4a 100644 --- a/Telegram/SourceFiles/boxes/sticker_set_box.cpp +++ b/Telegram/SourceFiles/boxes/sticker_set_box.cpp @@ -830,7 +830,9 @@ void StickerSetBox::Inner::send( void StickerSetBox::Inner::contextMenuEvent(QContextMenuEvent *e) { const auto index = stickerFromGlobalPos(e->globalPos()); - if (index < 0 || index >= _pack.size()) { + if (index < 0 + || index >= _pack.size() + || setType() != Data::StickersType::Stickers) { return; } const auto type = _controller->content()->sendMenuType();