Fix empty menu toggle in closed topics.

This commit is contained in:
John Preston 2022-12-06 23:36:28 +04:00
parent d827045199
commit 7dc9d5c37f
1 changed files with 7 additions and 0 deletions

View File

@ -773,6 +773,13 @@ void TopBarWidget::setActiveChat(
_titlePeerTextOnline = false;
update();
}, _activeChatLifetime);
// _menuToggle visibility depends on "View topic info",
// "View topic info" visibility depends on activeChatCurrent.
_controller->activeChatChanges(
) | rpl::start_with_next([=] {
updateControlsVisibility();
}, _activeChatLifetime);
}
}
updateUnreadBadge();