mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Add some more actions to info profile.
This commit is contained in:
@@ -22,10 +22,11 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
|
||||
namespace Window {
|
||||
|
||||
class Controller;
|
||||
|
||||
struct PeerMenuOptions {
|
||||
bool pinToggle = false;
|
||||
bool fromChatsList = false;
|
||||
bool showInfo = false;
|
||||
bool search = false;
|
||||
};
|
||||
|
||||
using PeerMenuCallback = base::lambda<QAction*(
|
||||
@@ -33,6 +34,7 @@ using PeerMenuCallback = base::lambda<QAction*(
|
||||
base::lambda<void()> handler)>;
|
||||
|
||||
void FillPeerMenu(
|
||||
not_null<Controller*> controller,
|
||||
not_null<PeerData*> peer,
|
||||
const PeerMenuCallback &callback,
|
||||
const PeerMenuOptions &options);
|
||||
|
Reference in New Issue
Block a user