Fix hasDraft length checks

Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-19 08:06:39 -05:00
committed by GitHub
parent 4cd87fa346
commit ddc2e1e46b

View File

@@ -10,8 +10,8 @@ export function hasDraft(
>
): boolean {
return (
(attrs.draft != null && attrs.draft.length > 1) ||
(attrs.draftAttachments != null && attrs.draftAttachments.length > 1) ||
(attrs.draft != null && attrs.draft.length > 0) ||
(attrs.draftAttachments != null && attrs.draftAttachments.length > 0) ||
attrs.quotedMessageId != null
);
}