mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Allow sending messages with file only
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user