fix(channel): allow sending image-only messages without text (#22752)
This commit is contained in:
1 file changed
+1
-1
@@ -925,7 +925,7 @@
|
||||
}
|
||||
|
||||
// Submit the content when Enter key is pressed
|
||||
if (content !== '' && e.keyCode === 13 && !e.shiftKey) {
|
||||
if ((content !== '' || files.length > 0) && e.keyCode === 13 && !e.shiftKey) {
|
||||
submitHandler();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user