Commit a57065a
fix(mail): voicemail notification missing attachment (#1013)
validate() checked subject/mainMessage before buildVariables() had
a chance to set them, causing RuntimeException for VoicemailNotification.
The fallback sendDirect() then sent the email without the attachment
because it never extracted recordingFile from the builder.
- Remove premature subject/mainMessage check from validate()
(all builders populate these lazily in buildVariables at render time)
- Pass voicemail attachment in sendDirect() fallback path1 parent 8ccce5f commit a57065a
2 files changed
Lines changed: 7 additions & 5 deletions
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | 340 | | |
345 | 341 | | |
346 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
180 | 186 | | |
181 | | - | |
| 187 | + | |
182 | 188 | | |
183 | 189 | | |
184 | 190 | | |
| |||
0 commit comments