diff --git a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp index 061962850f..2a62d9c058 100644 --- a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp @@ -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();