mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Added ability to go to message from Calls box.
This commit is contained in:
parent
f4ecfeaddd
commit
393f330d15
1 changed files with 5 additions and 0 deletions
|
@ -572,6 +572,11 @@ base::unique_qptr<Ui::PopupMenu> BoxController::rowContextMenu(
|
|||
_window->show(
|
||||
Box<DeleteMessagesBox>(session, base::duplicate(ids)));
|
||||
}, &st::menuIconDelete);
|
||||
result->addAction(tr::lng_context_to_msg(tr::now), [=, window = _window] {
|
||||
if (const auto item = session->data().message(ids.front())) {
|
||||
window->showMessage(item);
|
||||
}
|
||||
}, &st::menuIconShowInChat);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue