matrix-org / matrix-org/matrix-bifrost

Messages getting lost if Matrix user has left the DM room

Open
#287 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T-Defect
Dominant language
TypeScript
Stars
187
Forks
38
PR merge metrics
No merged PRs in 30d

Description

To reproduce:

Send a message from purple to matrix
Get invited to DM room
Leave DM room
Send a message from purple to matrix again
Messages get delivered to existing room even though the target user is already there

The user should either get reinvited if they're not there, or the room removed from Bifrost and DB altogether when the (only) matrix user leaves.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Bifrost handles existing DM rooms and persists their Matrix membership in the database, using the reproduction steps in this issue. Done means a message after the Matrix user leaves either reinvites them or removes the room from Bifrost and the database, rather than delivering to the abandoned room.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.