Remove emoji-set preview context menu.

This commit is contained in:
John Preston 2022-07-25 13:32:00 +03:00
parent 012ecb2dcc
commit 075ced2742

View file

@ -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();