2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Add some more actions to info profile.

This commit is contained in:
John Preston
2017-11-07 15:53:05 +04:00
parent 9f37820901
commit fcf2b9d1a7
12 changed files with 807 additions and 435 deletions

View File

@@ -1242,8 +1242,9 @@ void DialogsInner::contextMenuEvent(QContextMenuEvent *e) {
_menu = new Ui::PopupMenu(nullptr);
Window::PeerMenuOptions options;
options.pinToggle = options.showInfo = options.search = true;
options.fromChatsList = options.showInfo = true;
Window::FillPeerMenu(
_controller,
_menuPeer,
[this](const QString &text, base::lambda<void()> callback) {
return _menu->addAction(text, std::move(callback));