Aaron Guise
3bfa73f375
fix: leave subject blank (not "Fwd:") for a subject-less message
...
buildForwardAsAttachmentPayload called buildForwardSubject(email.subject,
forwardPrefix) unconditionally, and buildForwardSubject("", prefix)
returns just the bare prefix rather than "". Normal Forward doesn't do
this - EmailComposer's getInitialSubject() returns "" outright when
!replyTo?.subject, only calling buildForwardSubject when there's an
actual subject to prefix. So forwarding a subject-less message as an
attachment produced "Fwd:" as the subject, while normal Forward left
it blank.
Only call buildForwardSubject when email.subject is truthy, matching
getInitialSubject()'s behavior exactly. Add a test.
Caught by GitHub Copilot's automated PR review.
2026-07-27 17:42:33 +12:00
..
2026-07-27 17:42:33 +12:00
2026-07-22 02:54:55 +00:00
2026-06-05 19:23:06 +02:00
2026-07-24 18:30:50 +02:00
2026-05-21 23:35:58 +02:00
2026-07-24 18:30:50 +02:00
2026-07-16 17:56:19 +02:00
2026-07-22 20:28:32 +02:00
2026-06-19 12:29:43 +02:00
2026-04-27 22:23:39 +02:00
2026-05-21 23:35:58 +02:00
2026-05-30 15:45:33 +02:00
2026-07-16 22:51:07 +02:00
2026-06-24 18:39:38 +02:00
2026-05-06 20:07:36 +02:00
2026-05-25 16:45:13 +02:00
2026-06-28 19:13:02 +02:00
2026-07-04 14:51:46 +02:00
2026-06-19 12:31:07 +02:00
2026-06-19 12:31:07 +02:00
2026-06-03 19:30:51 +02:00
2026-07-07 23:26:36 +02:00
2026-03-31 00:11:04 +02:00
2026-04-21 17:42:52 +02:00
2026-04-16 16:54:09 +02:00
2026-07-21 21:00:53 +02:00
2026-05-22 14:04:02 +02:00
2026-07-21 20:58:55 +02:00
2026-02-17 01:09:57 +01:00
2026-04-12 01:10:28 +02:00
2026-06-24 18:46:41 +02:00
2026-07-21 23:27:40 +02:00
2026-07-21 23:03:34 +02:00
2026-07-22 19:17:23 +02:00
2026-06-25 01:04:26 +02:00
2026-05-06 20:07:36 +02:00
2026-05-22 15:22:33 +02:00
2025-12-10 17:54:22 +01:00
2026-07-16 18:00:41 +02:00
2026-06-01 17:25:14 +02:00
2026-07-27 17:42:33 +12:00
2026-06-15 23:15:04 +02:00
2026-05-18 16:01:29 +02:00
2026-07-08 15:42:42 +02:00
2026-07-21 23:26:51 +02:00
2026-02-16 18:51:30 +01:00
2026-06-24 19:32:13 +02:00
2026-05-30 15:58:39 +02:00
2026-07-04 14:52:26 +02:00
2026-07-22 17:22:20 +02:00
2026-04-16 19:07:42 +02:00
2026-05-30 15:56:55 +02:00
2026-06-25 01:04:26 +02:00
2026-07-09 14:55:34 +02:00
2026-07-22 17:22:20 +02:00
2026-04-28 17:34:06 +02:00
2026-07-22 19:17:23 +02:00
2026-06-25 00:25:28 +02:00
2026-04-09 22:13:08 +02:00
2026-06-19 12:31:07 +02:00
2026-07-23 19:36:33 +02:00
2026-05-09 17:37:41 +02:00
2026-05-31 15:52:27 +02:00
2026-06-15 23:15:04 +02:00
2026-05-06 20:07:36 +02:00
2026-06-24 15:56:38 +02:00
2026-07-19 10:10:31 +02:00
2026-07-19 10:10:31 +02:00
2026-04-28 17:34:06 +02:00
2026-04-28 17:34:06 +02:00
2026-07-06 13:36:25 +02:00
2026-04-16 19:07:42 +02:00
2026-07-11 21:14:50 +02:00
2026-07-21 20:56:38 +02:00
2026-07-08 15:41:46 +02:00
2026-05-21 23:35:58 +02:00
2026-05-21 23:35:58 +02:00
2026-06-17 09:11:29 +02:00