fix(nextcloud-talk-plugin): chunk long messages for Hermes cron delivery #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/nextcloud-talk-chunking"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hermes delivery layer truncates cron output at MAX_PLATFORM_OUTPUT (4000
chars) unless the adapter advertises splits_long_messages=True. Mark the
Nextcloud Talk adapter as such and implement word-boundary chunking in
send() and the standalone path, splitting content over 10000 chars into
multiple Talk messages with unique reference ids (Nextcloud dedupes on
referenceId, so a per-chunk suffix is required to avoid drops).
Verified end-to-end against nc.hoyer.xyz: a 59,582-char payload was
delivered as 6 Talk messages (ids 33286-33291), all under the 10000
limit.