Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose: Hide compose loading spinner after all failures.

Tim Abbottb75b40cfa3b6
diff --git a/web/src/compose.js b/web/src/compose.js
index f9d1a9595c3..9306c5e542a 100644
--- a/web/src/compose.js
+++ b/web/src/compose.js
@@ -264,6 +264,13 @@ export function send_message(request = create_message_object()) {
compose_banner.CLASSNAMES.generic_compose_error,
$("#compose-textarea"),
);
+ // For messages that were not locally echoed, we're
+ // responsible for hiding the compose spinner to restore
+ // the compose box so one can send a next message.
+ //
+ // (Restoring this state is handled by clear_compose_box
+ // for locally echoed messages.)
+ compose_ui.hide_compose_spinner();
return;
}