mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Remove helper temporary code.
This commit is contained in:
parent
9a012d8b9b
commit
3aab2a88aa
1 changed files with 0 additions and 15 deletions
|
@ -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 <QtGui/QClipboard>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtCore/QMimeData>
|
||||
|
@ -2322,19 +2320,6 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
? reinterpret_cast<DocumentData*>(
|
||||
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();
|
||||
|
|
Loading…
Add table
Reference in a new issue