mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 08:13:37 +01:00
Fix hasDraft length checks
Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user