From e02111e45843111243d03e5e4a96ed1a0b99ecd8 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Sun, 23 Apr 2023 12:19:40 +0530 Subject: [PATCH] compose: Show all accessible streams in stream dropdown menu. We now show all the streams, even if user is not allowed to post in them, in the stream dropdown in compose box. In further commits, we would add a banner mentioning that user is not allowed to post for such streams. --- web/src/compose_recipient.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/src/compose_recipient.js b/web/src/compose_recipient.js index 96be3843f7..ccfc5b6960 100644 --- a/web/src/compose_recipient.js +++ b/web/src/compose_recipient.js @@ -112,7 +112,6 @@ export function on_compose_select_stream_update(new_value) { export function update_stream_dropdown_options() { const streams_list = stream_data .subscribed_subs() - .filter((stream) => stream_data.can_post_messages_in_stream(stream)) .map((stream) => ({ name: stream.name, value: stream.name, @@ -140,7 +139,6 @@ export function possibly_update_dropdown_selection(old_stream_name, new_stream_n export function initialize() { const streams_list = stream_data .subscribed_subs() - .filter((stream) => stream_data.can_post_messages_in_stream(stream)) .map((stream) => ({ name: stream.name, value: stream.name,