mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Put the "N Seen" context menu item always first.
This commit is contained in:
parent
ead695b101
commit
e220447bdd
1 changed files with 12 additions and 10 deletions
|
@ -1615,16 +1615,6 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
return;
|
||||
}
|
||||
const auto itemId = item->fullId();
|
||||
if (hasWhoReadItem) {
|
||||
const auto participantChosen = [=](uint64 id) {
|
||||
controller->showPeerInfo(PeerId(id));
|
||||
};
|
||||
_menu->addAction(Ui::WhoReadContextAction(
|
||||
_menu.get(),
|
||||
Api::WhoRead(_dragStateItem, this, st::defaultWhoRead),
|
||||
participantChosen));
|
||||
_menu->addSeparator();
|
||||
}
|
||||
if (canSendMessages) {
|
||||
_menu->addAction(tr::lng_context_reply_msg(tr::now), [=] {
|
||||
_widget->replyToMessage(itemId);
|
||||
|
@ -1733,6 +1723,18 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
});
|
||||
}
|
||||
};
|
||||
|
||||
if (hasWhoReadItem) {
|
||||
const auto participantChosen = [=](uint64 id) {
|
||||
controller->showPeerInfo(PeerId(id));
|
||||
};
|
||||
_menu->addAction(Ui::WhoReadContextAction(
|
||||
_menu.get(),
|
||||
Api::WhoRead(_dragStateItem, this, st::defaultWhoRead),
|
||||
participantChosen));
|
||||
_menu->addSeparator();
|
||||
}
|
||||
|
||||
const auto link = ClickHandler::getActive();
|
||||
auto lnkPhoto = dynamic_cast<PhotoClickHandler*>(link.get());
|
||||
auto lnkDocument = dynamic_cast<DocumentClickHandler*>(link.get());
|
||||
|
|
Loading…
Add table
Reference in a new issue