Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Allow sending messages with file only
Hakan Shehub6f35ea430b2
diff --git a/apps/desktop/src/shared/lib/editor.ts b/apps/desktop/src/shared/lib/editor.tsindex 187ab89c..cb51ff5f 100644--- a/apps/desktop/src/shared/lib/editor.ts+++ b/apps/desktop/src/shared/lib/editor.ts@@ -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;}