Sfoglia il codice sorgente

fix: thread image only message

Timothy Jaeryang Baek 3 mesi fa
parent
commit
78dce85b03
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
 		}