left_sidebar: Show PM section in topics zoomed view.

This is important to preserve the invariant that the unread count for
private messages is always visible.

Fixes #23391.
This commit is contained in:
Aman Agrawal
2022-11-02 04:16:11 +00:00
committed by Tim Abbott
parent 1b304c5296
commit 46967002dd
3 changed files with 7 additions and 9 deletions

View File

@@ -274,16 +274,9 @@ export function zoom_in_topics(options) {
$elt.hide();
}
});
// we also need to hide the PM section and allow
// stream list to take complete left-sidebar in zoomedIn view.
$(".private_messages_container").hide();
}
export function zoom_out_topics() {
// Show PM section
$(".private_messages_container").show();
// Show stream list titles and pinned stream splitter
$(".stream-filters-label").each(function () {
$(this).show();