Correction of own channel post refused: message-not-found #11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What happened
The user's own post in a Telegram broadcast channel (one with a linked discussion group) went out from XMPP and was bridged correctly. But an XEP-0308 correction of it was refused as
message-not-found, so the post was never edited on Telegram.tackygram 0.4.1 (published image), anotherim-server 2026.11.07 (ejabberd). Client: anotherim-js 0.8.0 (flatpak).
Stanzas (client log, ids kept, channel id replaced with
CHAN)Send, 23:59:31Z. It reached Telegram as message 2847, and the echo carries the origin-id:
Telegram also auto-forwarded the post to the linked discussion group (
tg-<group>-21388).Correction, 00:00:02Z:
Gateway log (default level). There was no gotd
request failedaround it, somessages.editMessagewas never called:Where it likely fails
The refusal comes before any Telegram call. Two places can produce it:
target.resolve(engine/internal/engine/edits.go), whenSentByXID(xid)misses or its peer differs, ormsgRecreportingother. Most likely the xid→msgid record was never written for this send.PutSenthappens only inAccount.handle, for anUpdateMessageIDthat arrives while the send is still inpending, andsendRequestdeletes it frompendingonce the RPC returns. A channel post whoseUpdateMessageIDis not seen byhandlebefore that would leave no record, even though the echo is tagged with the origin-id.tests/e2e/channels.tclcovers "the user's correction of a post edits it on Telegram", but against the fake. Differences in the real case: a linked discussion group, and a signed post.No debug log yet. I can rerun with debug on if it helps.
Same incident, client side: another-im/anotherim-js#99 (another-im/anotherim-js#99). After this refused correction, deleting the post in anotherim-js sent no retraction.
Fixed in tackygram 0.4.2: an XMPP id made of digits only was taken as a Telegram message number, so the correction pointed at a message that does not exist (MESSAGE_ID_INVALID). The channel echo race that could double a post is fixed in the same release.