2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Pass reply info to Window::PeerMenu.

This commit is contained in:
John Preston
2020-11-11 23:47:40 +03:00
parent 4f22171dd6
commit 4a8b59b788
17 changed files with 236 additions and 197 deletions

View File

@@ -577,10 +577,11 @@ void WrapWidget::showTopBarMenu() {
if (const auto peer = key().peer()) {
Window::FillPeerMenu(
_controller->parentController(),
peer,
FilterId(),
addAction,
Window::PeerMenuSource::Profile);
Window::PeerMenuRequest{
.peer = peer,
.source = Window::PeerMenuRequest::Source::Profile,
},
addAction);
//} else if (const auto feed = key().feed()) { // #feed
// Window::FillFeedMenu(
// _controller->parentController(),