compose: Prevent displaying banner when channel picker is opened.

Prevent displaying the topic resolved banner when the channel
picker (compose_select_recipient_dropdown_widget) is opened in
the case of forwarding messages. This is done to prevent the
overlap of the channel picker and the banner, as it hides some
part of the banner text.

Fixes: #33449
This commit is contained in:
whilstsomebody
2025-04-26 10:42:39 +05:30
committed by Tim Abbott
parent dadec69986
commit 9ef3a19451
5 changed files with 28 additions and 2 deletions

View File

@@ -74,7 +74,11 @@ export function initialize() {
if ($("#compose").hasClass("preview_mode")) {
compose.render_preview_area();
}
compose_validate.warn_if_topic_resolved(false);
const recipient_widget_hidden =
$(".compose_select_recipient-dropdown-list-container").length === 0;
if (recipient_widget_hidden) {
compose_validate.warn_if_topic_resolved(false);
}
const compose_text_length = compose_validate.check_overflow_text($("#send_message_form"));
// Change compose close button tooltip as per condition.