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) {
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();