Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream_card_popover: Fix navigating to wrong channel setting tab.

Pratik Chanda9d78ea49cd3b
diff --git a/web/src/stream_card_popover.ts b/web/src/stream_card_popover.ts
index 42e403d9d9d..a89f6f208bc 100644
--- a/web/src/stream_card_popover.ts
+++ b/web/src/stream_card_popover.ts
@@ -52,7 +52,10 @@ export function initialize(): void {
const can_change_stream_permissions =
stream_data.can_change_permissions_requiring_metadata_access(sub);
let stream_edit_hash = hash_util.channels_settings_edit_url(sub, "general");
- if (!can_change_stream_permissions) {
+ if (
+ !can_change_stream_permissions &&
+ stream_data.is_subscribed(sub.stream_id)
+ ) {
stream_edit_hash = hash_util.channels_settings_edit_url(sub, "personal");
}
browser_history.go_to_location(stream_edit_hash);