mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Trim the message before sending - disable sending whitespace characters only
This commit is contained in:
@@ -178,7 +178,7 @@
|
||||
sendMessage: function(e) {
|
||||
e.preventDefault();
|
||||
var input = this.$messageField;
|
||||
var message = this.replace_colons(input.val());
|
||||
var message = this.replace_colons(input.val()).trim();
|
||||
var convo = this.model;
|
||||
|
||||
if (message.length > 0 || this.fileInput.hasFiles()) {
|
||||
|
||||
Reference in New Issue
Block a user