Home

fsky / j2i

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Enhance message reference handling for IRC/XMPP bridging

2 weeks ago

65e0405
Authored
Kruno9/8/2026, 5:22:44 PM
This update introduces a new `MsgRef` data class to uniquely identify messages across different connections and rooms, preventing identifier collisions. The changes include:

- Scoped message references by connection and room to ensure uniqueness.
- Updated various mappings and caches to utilize `MsgRef` for improved message tracking.
- Adjusted the XMPP client and component to handle the new stanza-id structure, including the `by` attribute for XEP-0359 compliance.

These enhancements improve the reliability of message threading and reaction handling in the bridge.

Closes #5.

Co-authored-by: Cursor <cursoragent@cursor.com>

Parentece623e

5 files changed
  • CHANGELOG.md+1−0
  • src/j2i/bridge.py+209−132
  • src/j2i/xmpp/client.py+20−12
  • src/j2i/xmpp/component.py+7−6
  • tests/test_msgref.py+165−0