From 7dc9d5c37fcd5b2b6a43748953353934373fdcd7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 6 Dec 2022 23:36:28 +0400 Subject: [PATCH] Fix empty menu toggle in closed topics. --- .../history/view/history_view_top_bar_widget.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 061962850..2a62d9c05 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();