Deleting own message in a tackygram channel sends no retraction #99
Labels
No labels
android
bug
duplicate
feature request
linux
macos
needsinfo
severity: high
severity: low
severity: medium
telegram_gw
ui/ux
windows
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
another-im/anotherim-js#99
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
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
moderateIQ. 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-id1794355170877405, 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 whenMessageRowAtgives no row, the row'sown_idis empty, or neitherReferenceIdnorCorrectionAnchorIdyields an id. One of these must have hit. Possible triggers: the echo arriving fromCHAN/<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:
The client received it. I haven't checked whether the row was tombstoned, but if the row is in a state where
retractfinds no own id,RetractionAllowed'sserver_idmatch may fail too.The refused correction mentioned above is another-im/tackygram#11 (another-im/tackygram#11).
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.