mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
Prevent multiple enters from sending duplicate messages
(imported from commit 872bb9971a6af3e352318665559e00b502dfb880)
This commit is contained in:
@@ -104,7 +104,10 @@ function handle_keydown(e) {
|
||||
&& code === 13 && !e.shiftKey
|
||||
&& enter_sends) {
|
||||
e.preventDefault();
|
||||
compose.finish();
|
||||
if ($("#compose-send-button").attr('disabled') !== "disabled") {
|
||||
$("#compose-send-button").attr('disabled', 'disabled');
|
||||
compose.finish();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user