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.
This commit is contained in:
Sahil Batra
2023-04-23 12:19:40 +05:30
committed by Tim Abbott
parent afc5066e36
commit e02111e458

View File

@@ -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,