mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-25 15:03:03 +02:00
Add "Create topic" to new forum view.
This commit is contained in:
parent
158d2a4124
commit
8d1c2f832d
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue