mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-26 15:33:02 +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) {
|
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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue