Commit 3a7d0ee
committed
fix(outbound): check delivery identity for media results before recording success
The sendPayload branch checks hasDeliveryResultIdentity before counting
a delivery result as sent, but the media branch was missing this check.
When a channel adapter returns a media result with no messageId or other
identity fields (e.g. QQBot rejecting a TTS temp file outside its media
roots), the delivery was incorrectly recorded as successful.
This caused cron auto-TTS deliveries to QQBot to be reported as
delivered when the message was actually lost, since the generated audio
file was outside QQBot's allowed media roots and the adapter returned
an error result with no delivery identity.
Add the same hasDeliveryResultIdentity check to the media delivery loop
so that no-identity media results are properly skipped, consistent with
the sendPayload branch behavior.
Fixes #928161 parent b76bca7 commit 3a7d0ee
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1424 | 1424 | | |
1425 | 1425 | | |
1426 | 1426 | | |
1427 | | - | |
| 1427 | + | |
1428 | 1428 | | |
1429 | 1429 | | |
1430 | 1430 | | |
| |||
1891 | 1891 | | |
1892 | 1892 | | |
1893 | 1893 | | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1894 | 1897 | | |
1895 | 1898 | | |
1896 | 1899 | | |
| |||
0 commit comments