stream-settings: Set show_not_subscribed value when opening overlay.

We reset the internal state while opening the stream settings
overlay to reflect that "Subscribed" tab will be selected.
We did set show_subscribed value to "True" but did not
set show_not_subscribed value to "False".

Due to this opening the overlay, after closing the overlay
when "Not subscribed" tab was selected, resulted in left
panel being shown empty with "Subscribed" tab selected
even when there were subscribed streams because both
show_subscribed and show_not_subscribed were set to "True".

This commit fixes it by setting show_not_subscribed to
"False" as well when resetting the state.
This commit is contained in:
Sahil Batra
2025-07-02 13:00:40 +05:30
committed by Tim Abbott
parent ab5bce02c6
commit 906f8d076c

View File

@@ -816,6 +816,7 @@ function setup_page(callback: () => void): void {
// Reset our internal state to reflect that we're initially in
// the "Subscribed" tab if we're reopening "Stream settings".
stream_ui_updates.set_show_subscribed(true);
stream_ui_updates.set_show_not_subscribed(false);
toggler = components.toggle({
child_wants_focus: true,
values: [