Browse Source

fix: thread image only message

Timothy Jaeryang Baek 3 months ago
parent
commit
78dce85b03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/channel/Thread.svelte

+ 1 - 1
src/lib/components/channel/Thread.svelte

@@ -119,7 +119,7 @@
 	};
 
 	const submitHandler = async ({ content, data }) => {
-		if (!content) {
+		if (!content && (data?.files ?? []).length === 0) {
 			return;
 		}