mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed display of menu items from sponsored message with selected text.
This commit is contained in:
@@ -2526,6 +2526,9 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||||||
? link->copyToClipboardContextItemText()
|
? link->copyToClipboardContextItemText()
|
||||||
: QString();
|
: QString();
|
||||||
|
|
||||||
|
if (item->isSponsored()) {
|
||||||
|
FillSponsoredMessagesMenu(controller, item->fullId(), _menu);
|
||||||
|
}
|
||||||
if (isUponSelected > 0) {
|
if (isUponSelected > 0) {
|
||||||
addReplyAction(item);
|
addReplyAction(item);
|
||||||
const auto selectedText = getSelectedText();
|
const auto selectedText = getSelectedText();
|
||||||
@@ -2588,10 +2591,6 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||||||
}, &st::menuIconCopy);
|
}, &st::menuIconCopy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (item->isSponsored()) {
|
|
||||||
const auto itemId = item->fullId();
|
|
||||||
FillSponsoredMessagesMenu(controller, itemId, _menu);
|
|
||||||
}
|
|
||||||
if (!item->isService() && view && actionText.isEmpty()) {
|
if (!item->isService() && view && actionText.isEmpty()) {
|
||||||
if (!hasCopyRestriction(item)
|
if (!hasCopyRestriction(item)
|
||||||
&& (view->hasVisibleText() || mediaHasTextForCopy)) {
|
&& (view->hasVisibleText() || mediaHasTextForCopy)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user