hotkey: Clear message sent success banners too on escape keypress.

Without this, if there was a success compose banner and user pressed
escape key, no banners were hidden and the same behaviour was repeated
without compose ever closing.
This commit is contained in:
Aman Agrawal 2023-04-24 16:47:18 +00:00 committed by Tim Abbott
parent f1c09598bf
commit a90fa79bfc
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ export function process_escape_key(e) {
// Check for errors in compose box; close errors if they exist
if ($(".compose_banner").length) {
compose_banner.clear_message_sent_banners();
compose_banner.clear_errors();
compose_banner.clear_warnings();
return true;