Fix hasDraft length checks

This commit is contained in:
Jamie
2026-03-17 17:47:38 -07:00
committed by GitHub
parent 2c5cc6ae39
commit d8113d4d12

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