mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Fix empty menu toggle in closed topics.
This commit is contained in:
parent
d827045199
commit
7dc9d5c37f
1 changed files with 7 additions and 0 deletions
|
@ -773,6 +773,13 @@ void TopBarWidget::setActiveChat(
|
||||||
_titlePeerTextOnline = false;
|
_titlePeerTextOnline = false;
|
||||||
update();
|
update();
|
||||||
}, _activeChatLifetime);
|
}, _activeChatLifetime);
|
||||||
|
|
||||||
|
// _menuToggle visibility depends on "View topic info",
|
||||||
|
// "View topic info" visibility depends on activeChatCurrent.
|
||||||
|
_controller->activeChatChanges(
|
||||||
|
) | rpl::start_with_next([=] {
|
||||||
|
updateControlsVisibility();
|
||||||
|
}, _activeChatLifetime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateUnreadBadge();
|
updateUnreadBadge();
|
||||||
|
|
Loading…
Add table
Reference in a new issue