compose: Update error shown on sending message with no topic.

This commit updates the error message shown on sending a message
with no topic in an organization with mandatory_topics setting
set as true to match the error message in API.
This commit is contained in:
Sahil Batra
2022-02-02 13:18:31 +05:30
committed by Tim Abbott
parent 9f0d498994
commit d83b50d39f
2 changed files with 2 additions and 2 deletions

View File

@@ -526,7 +526,7 @@ function validate_stream_message() {
const topic = compose_state.topic();
if (topic === "") {
compose_error.show(
$t_html({defaultMessage: "Please specify a topic"}),
$t_html({defaultMessage: "Topics are required in this organization"}),
$("#stream_message_recipient_topic"),
);
return false;