mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Allow editing topic title and icon.
This commit is contained in:
@@ -541,10 +541,13 @@ void WrapWidget::showTopBarMenu(bool check) {
|
||||
[=] { deleteAllDownloads(); },
|
||||
&st::menuIconDelete);
|
||||
} else if (const auto peer = key().peer()) {
|
||||
const auto topic = key().topic();
|
||||
Window::FillDialogsEntryMenu(
|
||||
_controller->parentController(),
|
||||
Dialogs::EntryState{
|
||||
.key = peer->owner().history(peer),
|
||||
.key = (topic
|
||||
? Dialogs::Key{ topic }
|
||||
: Dialogs::Key{ peer->owner().history(peer) }),
|
||||
.section = Dialogs::EntryState::Section::Profile,
|
||||
},
|
||||
addAction);
|
||||
|
Reference in New Issue
Block a user