Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose box: Fix disabled reply button for spectators.
Harsh40519ee9fa85
diff --git a/web/src/compose_closed_ui.ts b/web/src/compose_closed_ui.tsindex 0f6f16c50a7..491621a7dc6 100644--- a/web/src/compose_closed_ui.ts+++ b/web/src/compose_closed_ui.ts@@ -6,6 +6,7 @@ import * as message_lists from "./message_lists.ts";import * as message_store from "./message_store.ts";import * as message_util from "./message_util.ts";import * as narrow_state from "./narrow_state.ts";+import {page_params} from "./page_params.ts";import * as people from "./people.ts";import * as stream_data from "./stream_data.ts";import * as util from "./util.ts";@@ -120,7 +121,7 @@ function maybe_get_selected_message_stream_id(): number | undefined {function should_disable_compose_reply_button_for_stream(): boolean {const stream_id = maybe_get_selected_message_stream_id();- if (stream_id !== undefined) {+ if (stream_id !== undefined && !page_params.is_spectator) {const stream = stream_data.get_sub_by_id(stream_id);if (stream && !stream_data.can_post_messages_in_stream(stream)) {return true;