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.

user_profile: Remove unnecessary filter call.

Sahil Batra8c45e1dfedf4
diff --git a/web/src/user_profile.js b/web/src/user_profile.js
index e1612b59ff8..7939cef0fdf 100644
--- a/web/src/user_profile.js
+++ b/web/src/user_profile.js
@@ -151,8 +151,7 @@ export function get_user_unsub_streams() {
const target_user_id = Number.parseInt($("#user-profile-modal").attr("data-user-id"), 10);
return stream_data
.get_streams_for_user(target_user_id)
- .can_subscribe.filter((stream) => stream_data.can_subscribe_others(stream))
- .map((stream) => ({
+ .can_subscribe.map((stream) => ({
name: stream.name,
unique_id: stream.stream_id.toString(),
stream,