From 69de75ec0b7cf0e28328506f8b0a8014ff16fb46 Mon Sep 17 00:00:00 2001 From: roanster007 Date: Sat, 9 Dec 2023 14:09:45 +0530 Subject: [PATCH] compose: Fix display of compose banner when dm disallowed. Previously, when the compose bar was open with any DM recipient, and the organization wide setting to disallow DM is toggled, then the DM not allowed banner is not displayed on the compose until it is reopened. This is fixed by changing the server event dispatch of private_message_policy from noop to a method to check for the compose's posting policy status, and display the banner. Fixes #27774 --- web/src/server_events_dispatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/server_events_dispatch.js b/web/src/server_events_dispatch.js index c7ebc2301d..45ae0f7a88 100644 --- a/web/src/server_events_dispatch.js +++ b/web/src/server_events_dispatch.js @@ -230,7 +230,7 @@ export function dispatch_normal_event(event) { name_changes_disabled: settings_account.update_name_change_display, notifications_stream_id: stream_ui_updates.update_announce_stream_option, org_type: noop, - private_message_policy: noop, + private_message_policy: compose_recipient.check_posting_policy_for_compose_box, push_notifications_enabled: noop, send_welcome_emails: noop, message_content_allowed_in_email_notifications: noop,