mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
compose: Handle fading with general chat.
This commit also attempts to fix a bug, present in main, where a draft restored directly to the compose box loses its original topic upon switching to other topic narrows. Co-authored-by: Prakhar Pratyush <prakhar@zulip.com>
This commit is contained in:
@@ -10,6 +10,7 @@ import * as compose_actions from "./compose_actions.ts";
|
||||
import * as compose_banner from "./compose_banner.ts";
|
||||
import * as compose_call from "./compose_call.ts";
|
||||
import * as compose_call_ui from "./compose_call_ui.ts";
|
||||
import * as compose_fade from "./compose_fade.ts";
|
||||
import * as compose_notifications from "./compose_notifications.ts";
|
||||
import * as compose_recipient from "./compose_recipient.ts";
|
||||
import * as compose_send_menu_popover from "./compose_send_menu_popover.js";
|
||||
@@ -583,6 +584,7 @@ export function initialize() {
|
||||
|
||||
$("textarea#compose-textarea").on("focus", () => {
|
||||
compose_recipient.update_compose_area_placeholder_text();
|
||||
compose_fade.do_update_all();
|
||||
if (narrow_state.narrowed_by_reply()) {
|
||||
compose_notifications.maybe_show_one_time_non_interleaved_view_messages_fading_banner();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user