Allow sending messages with file only

This commit is contained in:
Hakan Shehu
2024-11-23 09:40:06 +01:00
parent f952278271
commit b6f35ea430

View File

@@ -219,11 +219,11 @@ export const editorHasContent = (block?: JSONContent) => {
return true;
}
if (block.type === 'file' && block.attrs?.fileId) {
if (block.type === 'file' && block.attrs?.id) {
return true;
}
if (block.type === 'upload' && block.attrs?.uploadId) {
if (block.type === 'filePlaceholder' && block.attrs?.id) {
return true;
}