fix(channel): allow sending image-only messages without text (#22752)
This commit is contained in:
@@ -925,7 +925,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Submit the content when Enter key is pressed
|
// 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();
|
submitHandler();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user