fix: 🐛 can't send blank messages

Closes #9661
This commit is contained in:
ThatOneCalculator 2023-03-19 20:02:14 -07:00
parent 2de02cf655
commit 4c4c641804
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ const typing = throttle(3000, () => {
}); });
let draftKey = $computed(() => props.user ? 'user:' + props.user.id : 'group:' + props.group?.id); let draftKey = $computed(() => props.user ? 'user:' + props.user.id : 'group:' + props.group?.id);
let canSend = $computed(() => (text != null && text !== '') || file != null); let canSend = $computed(() => (text != null && text.trim() !== '') || file != null);
watch([$$(text), $$(file)], saveDraft); watch([$$(text), $$(file)], saveDraft);