Skip to content

Fix bridging for recreated DM rooms#376

Merged
AndrewFerr merged 5 commits intodevelopfrom
af/fix-incoming-dms
Apr 1, 2026
Merged

Fix bridging for recreated DM rooms#376
AndrewFerr merged 5 commits intodevelopfrom
af/fix-incoming-dms

Conversation

@AndrewFerr
Copy link
Copy Markdown
Member

Fix incoming messages in DM rooms created after having left an older DM room with the same XMPP user.

Also make fixes to & improve typing of PgDatastore.

Replaces #373

Fix incoming messages in DM rooms created after having left an older DM
room with the same XMPP user.

Also make fixes to & improve typing of PgDatastore.
@AndrewFerr AndrewFerr requested a review from a team as a code owner March 30, 2026 13:25
Copy link
Copy Markdown
Member

@jaywink jaywink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments to consider

Don't block startup until all IM rooms are scanned for staleness.
Instead, kick off a scan to be done asynchronously, and only block
incoming IMs on a per-chat basis, until the scan on its associated
Matrix room has finished.

Also don't consider an IM room as stale if an attempt to look up
membership state fails with anything other than a 403 or 404 response,
as those are the only responses that definitively indicate something
wrong with membership in the room.
@AndrewFerr AndrewFerr requested a review from jaywink March 31, 2026 20:14
Copy link
Copy Markdown
Member

@jaywink jaywink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elegant, last changes make things much more maintainable imho, and less prone to introducing new issues, thanks!

@AndrewFerr
Copy link
Copy Markdown
Member Author

Thanks for the review; it really pushed this in the right direction!

@AndrewFerr AndrewFerr merged commit 4fe8591 into develop Apr 1, 2026
10 checks passed
@AndrewFerr AndrewFerr deleted the af/fix-incoming-dms branch April 1, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants