Add "Create topic" to new forum view.

This commit is contained in:
John Preston 2025-06-04 17:59:25 +04:00
parent 158d2a4124
commit 8d1c2f832d

View file

@ -529,7 +529,10 @@ void Filler::addTogglePin() {
} }
void Filler::addToggleMuteSubmenu(bool addSeparator) { 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; return;
} }
PeerMenuAddMuteSubmenuAction(_controller, _thread, _addAction); PeerMenuAddMuteSubmenuAction(_controller, _thread, _addAction);
@ -1470,6 +1473,7 @@ void Filler::fillContextMenuActions() {
void Filler::fillHistoryActions() { void Filler::fillHistoryActions() {
addToggleMuteSubmenu(true); addToggleMuteSubmenu(true);
addCreateTopic();
addInfo(); addInfo();
addViewAsTopics(); addViewAsTopics();
addManageChat(); addManageChat();