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_list: Remove redundant condition block to get topic list URL.

Vector7309b4a4c6e4ba
diff --git a/web/src/stream_list.ts b/web/src/stream_list.ts
index 966038e58b9..ac09cca04a8 100644
--- a/web/src/stream_list.ts
+++ b/web/src/stream_list.ts
@@ -466,13 +466,7 @@ function build_stream_sidebar_li(sub: StreamSubscription): JQuery {
const name = sub.name;
const is_muted = stream_data.is_muted(sub.stream_id);
const can_post_messages = stream_data.can_post_messages_in_stream(sub);
- let url = hash_util.channel_url_by_user_setting(sub.stream_id);
- if (
- web_channel_default_view_values.list_of_topics.code ===
- user_settings.web_channel_default_view
- ) {
- url = hash_util.by_channel_topic_list_url(sub.stream_id);
- }
+ const url = hash_util.channel_url_by_user_setting(sub.stream_id);
const args = {
name,
id: sub.stream_id,