From 4c4c6418045b8d6857e5150b14a52b52b6978944 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 19 Mar 2023 20:02:14 -0700 Subject: [PATCH] fix: :bug: can't send blank messages Closes #9661 --- packages/client/src/pages/messaging/messaging-room.form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/messaging/messaging-room.form.vue b/packages/client/src/pages/messaging/messaging-room.form.vue index 18f2ba7a31..4e7fa30a68 100644 --- a/packages/client/src/pages/messaging/messaging-room.form.vue +++ b/packages/client/src/pages/messaging/messaging-room.form.vue @@ -57,7 +57,7 @@ const typing = throttle(3000, () => { }); 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);