mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user