Skip to content

Commit

Permalink
Remove helper temporary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Feb 18, 2024
1 parent 9a012d8 commit 3aab2a8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Telegram/SourceFiles/history/history_inner_widget.cpp
Expand Up @@ -84,8 +84,6 @@ For license and copyright information please follow this link:
#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>
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 3aab2a8

Please sign in to comment.