mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Improve monoforum opening.
This commit is contained in:
@@ -942,8 +942,7 @@ void Widget::chosenRow(const ChosenRow &row) {
|
||||
return;
|
||||
} else if (history
|
||||
&& history->peer->amMonoforumAdmin()
|
||||
&& !row.message.fullId
|
||||
&& !controller()->adaptive().isOneColumn()) {
|
||||
&& !row.message.fullId) {
|
||||
const auto monoforum = history->peer->monoforum();
|
||||
if (controller()->shownMonoforum().current() == monoforum) {
|
||||
controller()->closeMonoforum();
|
||||
@@ -954,10 +953,12 @@ void Widget::chosenRow(const ChosenRow &row) {
|
||||
controller()->showMonoforum(
|
||||
monoforum,
|
||||
Window::SectionShow().withChildColumn());
|
||||
controller()->showThread(
|
||||
history,
|
||||
ShowAtUnreadMsgId,
|
||||
Window::SectionShow::Way::ClearStack);
|
||||
if (!controller()->adaptive().isOneColumn()) {
|
||||
controller()->showThread(
|
||||
history,
|
||||
ShowAtUnreadMsgId,
|
||||
Window::SectionShow::Way::ClearStack);
|
||||
}
|
||||
}
|
||||
return;
|
||||
} else if (history) {
|
||||
|
||||
Reference in New Issue
Block a user