compose: Pass a container to which the banner should be applied.

This fixes banners related to message editing incorrectly appearing
next to the compose box.

Fixes: #25230.
This commit is contained in:
Daniil Fadeev
2023-05-02 16:05:37 +07:00
committed by Tim Abbott
parent c70910b5dc
commit 6dc10f8696
10 changed files with 80 additions and 35 deletions

View File

@@ -121,6 +121,7 @@ export function check_stream_posting_policy_for_compose_box(stream_name) {
defaultMessage: "You do not have permission to post in this stream.",
}),
compose_banner.CLASSNAMES.no_post_permissions,
$("#compose_banners"),
);
} else {
$(".compose_right_float_container").removeClass("disabled-compose-send-button-container");