Fix hasDraft length checks

Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-18 13:25:51 -05:00
committed by GitHub
parent 7c02a492d9
commit 96a3ae01c7

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
);
}