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

This commit is contained in:
G30
2026-03-17 17:37:41 -05:00
committed by GitHub
parent 3107a5363d
commit b062235d0c
@@ -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();
}
}