Deleting own message in a tackygram channel sends no retraction #99

Open
opened 2026-11-11 00:17:20 +00:00 by asxpi · 2 comments
Member

What happened

In a Telegram channel bridged by tackygram (an XMPP room), I deleted my own message in anotherim-js. The client sent nothing: the debug log for the account has no outgoing XEP-0424 retraction and no XEP-0425 moderate IQ. The message stayed on Telegram, and I had to delete it there.

anotherim-js 0.8.0 (flatpak im.another.messenger), gateway tackygram 0.4.1 on ejabberd.

Context (client log, channel id replaced with CHAN)

The message was ours. We sent it with id/origin-id 1794355170877405, and the room's echo carried <stanza-id by='CHAN@telegram.example' id='2847'/>. A correction of it had just been refused by the gateway (item-not-found, a tackygram bug filed separately). The next room message out after that was a new post. There was no retraction between 00:00:02Z and the Telegram-side deletion at 00:00:27Z.

Suspect

In libtacky tacky/xmpp/modules/message.tcl, tackymethod retract, the room branch returns without sending and without an error when MessageRowAt gives no row, the row's own_id is empty, or neither ReferenceId nor CorrectionAnchorId yields an id. One of these must have hit. Possible triggers: the echo arriving from CHAN/<signature nick>; the copy auto-forwarded into the linked discussion group (tg-<group>-21388); the refused correction.

Whatever the cause, a silent no-op is the worst outcome. The UI should say the delete was not sent, and maybe offer moderation (the user owns the channel).

Unverified

After the deletion on Telegram, the gateway sent the room's moderated retraction:

<message from='CHAN@telegram.example' id='tg-CHAN-2847-x' type='groupchat'>
  <retract xmlns='urn:xmpp:message-retract:1' id='2847'>
    <moderated xmlns='urn:xmpp:message-moderate:1' by='CHAN@telegram.example'/></retract>…</message>

The client received it. I haven't checked whether the row was tombstoned, but if the row is in a state where retract finds no own id, RetractionAllowed's server_id match may fail too.

## What happened In a Telegram channel bridged by tackygram (an XMPP room), I deleted my own message in anotherim-js. The client sent **nothing**: the debug log for the account has no outgoing XEP-0424 retraction and no XEP-0425 `moderate` IQ. The message stayed on Telegram, and I had to delete it there. anotherim-js 0.8.0 (flatpak `im.another.messenger`), gateway tackygram 0.4.1 on ejabberd. ## Context (client log, channel id replaced with `CHAN`) The message was ours. We sent it with `id`/origin-id `1794355170877405`, and the room's echo carried `<stanza-id by='CHAN@telegram.example' id='2847'/>`. A correction of it had just been refused by the gateway (`item-not-found`, a tackygram bug filed separately). The next room message out after that was a new post. There was no retraction between 00:00:02Z and the Telegram-side deletion at 00:00:27Z. ## Suspect In libtacky `tacky/xmpp/modules/message.tcl`, `tackymethod retract`, the room branch returns without sending and without an error when `MessageRowAt` gives no row, the row's `own_id` is empty, or neither `ReferenceId` nor `CorrectionAnchorId` yields an id. One of these must have hit. Possible triggers: the echo arriving from `CHAN/<signature nick>`; the copy auto-forwarded into the linked discussion group (`tg-<group>-21388`); the refused correction. Whatever the cause, a silent no-op is the worst outcome. The UI should say the delete was not sent, and maybe offer moderation (the user owns the channel). ## Unverified After the deletion on Telegram, the gateway sent the room's moderated retraction: ```xml <message from='CHAN@telegram.example' id='tg-CHAN-2847-x' type='groupchat'> <retract xmlns='urn:xmpp:message-retract:1' id='2847'> <moderated xmlns='urn:xmpp:message-moderate:1' by='CHAN@telegram.example'/></retract>…</message> ``` The client received it. I haven't checked whether the row was tombstoned, but if the row is in a state where `retract` finds no own id, `RetractionAllowed`'s `server_id` match may fail too.
Author
Member

The refused correction mentioned above is another-im/tackygram#11 (another-im/tackygram#11).

The refused correction mentioned above is another-im/tackygram#11 (https://dev.another.im/another-im/tackygram/issues/11).
ann referenced this issue from a commit 2026-11-11 06:33:49 +00:00
0.8.2, on libtacky v1.2.9 (862ed8ad): a patch of the 0.8 line, develop 7c6a36e1 (the People button's count, tag chips and the picker's scroll, PRs #100 and #101, Expert settings' version in three lines) with the r11 lanes merged: feat/files-never-plain (Never send files unencrypted, If the upload fails, send directly, the Send directly? question and the forward question's new words), fix/edit-errors with fix/retract-error ("Message not deleted: ..." and "Edit not sent: ...", <EditRefused> toasted, #99), fix/otr-start (a secret chat's window holds OTR rows alone, the give-up words) and chore/ui-copy dd94de94 (the copy round and its 100-character guard; the catalogues merged key by key, the OTR give-up line shortened to fit), libtacky pinned to v1.2.9 with the generated API regenerated (a24b8b81). Version 0.8.2 in the UI package and its lock, tauri.conf.json, Cargo.toml and Cargo.lock and the README's version line, Android versionCode 8017; CHANGELOG 0.8.2 replacing the Unreleased bullets; the metainfo's stable release 0.8.2 (appstreamcli validate --no-net passes). docs/macos.md stays at the last Mac release. README's tables measured again on a24b8b81: 117,713 lines of code and 123,415 of tests, UI coverage 71,160 of 72,770 lines (97.8%, 90.7% of branches), shell 12,786 of 13,519 (94.6%), Kotlin 4,536 of 4,795 (94.6%), worker 872 of 872. Gate on ddc8f7bf (this code with libtacky's v1.2.9 code under a WIP pin; the regenerated API differs only in a doc comment): make check STRICT=1 (2,546 strings in all five languages), build, test-ui 463 files, 5,464 passed, 8 skipped, test-shell 56 files 460 passed, test-worker, release-check (pins + audit), coverage-android, the Windows cargo check, webkit-smoke 10,672 checks 0 failed, coverage-worker, coverage-shell-all; coverage-ui once failed reopen-same-chat's spy under load (known), green on a24b8b81.
Owner

Fixed: deleting your own post in a Telegram channel now works. The cause was on the gateway: an all-digit message id was taken as a Telegram message number (tackygram 0.4.2, see tackygram#11). And a retraction that cannot be sent is no longer silent: libtacky 1.2.9 answers with an error and another.im 0.8.2 shows it.

Fixed: deleting your own post in a Telegram channel now works. The cause was on the gateway: an all-digit message id was taken as a Telegram message number ([tackygram 0.4.2](https://dev.another.im/another-im/tackygram/releases/tag/v0.4.2), see tackygram#11). And a retraction that cannot be sent is no longer silent: [libtacky 1.2.9](https://dev.another.im/another-im/libtacky/releases/tag/v1.2.9) answers with an error and [another.im 0.8.2](https://dev.another.im/another-im/anotherim-js/releases/tag/v0.8.2) shows it.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
another-im/anotherim-js#99
No description provided.