From 8d1c2f832d24ad1a8a0efdf482a0713634f916f0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 4 Jun 2025 17:59:25 +0400 Subject: [PATCH] Add "Create topic" to new forum view. --- Telegram/SourceFiles/window/window_peer_menu.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index 2a5da8ae11..958cb3179b 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -529,7 +529,10 @@ void Filler::addTogglePin() { } void Filler::addToggleMuteSubmenu(bool addSeparator) { - if (!_thread || _thread->peer()->isSelf() || _thread->asSublist()) { + if (!_thread + || _thread->peer()->isSelf() + || _thread->asSublist() + || (_thread->asHistory() && _thread->asHistory()->isForum())) { return; } PeerMenuAddMuteSubmenuAction(_controller, _thread, _addAction); @@ -1470,6 +1473,7 @@ void Filler::fillContextMenuActions() { void Filler::fillHistoryActions() { addToggleMuteSubmenu(true); + addCreateTopic(); addInfo(); addViewAsTopics(); addManageChat();