mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 14:47:11 +02:00
Fixed display of menu items from sponsored message with selected text.
This commit is contained in:
parent
5bc954396c
commit
4e3c1460f6
1 changed files with 3 additions and 4 deletions
|
@ -2526,6 +2526,9 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
? link->copyToClipboardContextItemText()
|
||||
: QString();
|
||||
|
||||
if (item->isSponsored()) {
|
||||
FillSponsoredMessagesMenu(controller, item->fullId(), _menu);
|
||||
}
|
||||
if (isUponSelected > 0) {
|
||||
addReplyAction(item);
|
||||
const auto selectedText = getSelectedText();
|
||||
|
@ -2588,10 +2591,6 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
}, &st::menuIconCopy);
|
||||
}
|
||||
}
|
||||
if (item->isSponsored()) {
|
||||
const auto itemId = item->fullId();
|
||||
FillSponsoredMessagesMenu(controller, itemId, _menu);
|
||||
}
|
||||
if (!item->isService() && view && actionText.isEmpty()) {
|
||||
if (!hasCopyRestriction(item)
|
||||
&& (view->hasVisibleText() || mediaHasTextForCopy)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue