compose: Hide sending indicator when the message failed validation.

This bug was found when the user tries to send a
over character limit message, i.e It has failed the
validation but it still shows the "Sending..." text.
This commit is contained in:
Riken Shah 2021-07-10 16:15:39 +00:00 committed by Tim Abbott
parent 7dc56fdcf2
commit 4cce23b564
1 changed files with 2 additions and 0 deletions

View File

@ -284,6 +284,8 @@ export function finish() {
}
if (!compose_validate.validate()) {
// If the message failed validation, hide the sending indicator.
$("#sending-indicator").hide();
return false;
}