fix(channel): allow sending image-only messages without text (#22752)

This commit is contained in:
G30 2026-03-17 18:37:41 -04:00 committed by GitHub
parent 3107a5363d
commit b062235d0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}
}