mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-26 19:14:02 +02:00
parent
0a63eac4f6
commit
10ee81f466
1 changed files with 5 additions and 0 deletions
|
@ -1703,6 +1703,11 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (const auto contact = media->sharedContact()) {
|
||||||
|
const auto phone = contact->phoneNumber;
|
||||||
|
_menu->addAction(tr::lng_profile_copy_phone(tr::now), [=] {
|
||||||
|
QApplication::clipboard()->setText(phone);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (msg && view && !link && (view->hasVisibleText() || mediaHasTextForCopy)) {
|
if (msg && view && !link && (view->hasVisibleText() || mediaHasTextForCopy)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue