2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Add "Show Topics List" button to topic profile.

This commit is contained in:
John Preston
2022-11-08 20:27:12 +04:00
parent d0d2a4f488
commit 4a8b5c3015
3 changed files with 34 additions and 3 deletions

View File

@@ -983,7 +983,9 @@ void SessionController::openForum(
if (_openedForum.current() != forum) {
resetFakeUnreadWhileOpened();
}
if (forum && _activeChatEntry.current().key.peer()) {
if (forum
&& _activeChatEntry.current().key.peer()
&& adaptive().isOneColumn()) {
clearSectionStack(params);
}
_openedForum = forum.get();
@@ -996,6 +998,9 @@ void SessionController::openForum(
{ anim::type::normal, anim::activation::background });
}, _openedForumLifetime);
}
if (params.activation != anim::activation::background) {
hideLayer();
}
}
void SessionController::closeForum() {