mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
EntityInText made class instead of struct. Scheme updated.
No left trim of monospace text block when sending / displaying text. New entity type (mention name) introduced, but not supported yet.
This commit is contained in:
@@ -1072,9 +1072,9 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
||||
}
|
||||
}
|
||||
|
||||
QString copyToClipboardContextItem = _contextMenuLnk ? _contextMenuLnk->copyToClipboardContextItem() : QString();
|
||||
if (!copyToClipboardContextItem.isEmpty()) {
|
||||
_menu->addAction(copyToClipboardContextItem, this, SLOT(copyContextUrl()))->setEnabled(true);
|
||||
QString linkCopyToClipboardText = _contextMenuLnk ? _contextMenuLnk->copyToClipboardContextItemText() : QString();
|
||||
if (!linkCopyToClipboardText.isEmpty()) {
|
||||
_menu->addAction(linkCopyToClipboardText, this, SLOT(copyContextUrl()))->setEnabled(true);
|
||||
}
|
||||
if (item && item->hasDirectLink() && isUponSelected != 2 && isUponSelected != -2) {
|
||||
_menu->addAction(lang(lng_context_copy_post_link), _widget, SLOT(onCopyPostLink()));
|
||||
@@ -2027,7 +2027,7 @@ QString HistoryInner::tooltipText() const {
|
||||
} else if (_dragCursorState == HistoryInForwardedCursorState && _dragAction == NoDrag) {
|
||||
if (App::hoveredItem()) {
|
||||
if (HistoryMessageForwarded *fwd = App::hoveredItem()->Get<HistoryMessageForwarded>()) {
|
||||
return fwd->_text.original(AllTextSelection, Text::ExpandLinksNone);
|
||||
return fwd->_text.original(AllTextSelection, ExpandLinksNone);
|
||||
}
|
||||
}
|
||||
} else if (ClickHandlerPtr lnk = ClickHandler::getActive()) {
|
||||
|
Reference in New Issue
Block a user