Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_data: Fully reset stream state in clear_subscriptions.
Evy Kassirerd61322162c00
diff --git a/web/src/stream_data.ts b/web/src/stream_data.tsindex eda23292443..659a7dae5e5 100644--- a/web/src/stream_data.ts+++ b/web/src/stream_data.ts@@ -140,6 +140,10 @@ export function clear_subscriptions(for_tests = true): void {// it should only be used in tests.stream_info = new BinaryDict((sub) => sub.subscribed);sub_store.clear();+ stream_ids_by_name.clear();+ stream_ids_by_old_names.clear();+ default_stream_ids.clear();+ realm_web_public_stream_ids.clear();if (for_tests) {peer_data.clear_subscriber_counts_for_tests();}