matrix-org / matrix-org/matrix-js-sdk

Public room inconsistent invitation behavior after leaving.

Open
#4,813 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

O-Uncommon S-Minor T-Defect X-Needs-Investigation
Dominant language
TypeScript
Stars
2.2k
Forks
704
Avg merge
1d 20h
Merged PRs (30d)
40

Description

There is a defect in how membership system behaves when the public room creator leaves and tries to rejoin the it again.

Steps to reproduce:

  1. User creates a public group chat with any number of other invited users.
  2. Any number of users or at least one should accept the invitation.
  3. Creator changes image and/or group name
  4. Create leaves a room
  5. Someone invites the creator back to the room-> the creator can see the invitation
  6. Creator refreshes the page -> and the invitation is gone.

This problem happens with multiple sessions. Example: the creator might have like 4 other session in different browser. And for 3 of them this issue happens and the 1 is alright.
Note: In Element Web Client the invitation after refresh flashes for the fraction of a second and then it's gone.

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 reproducing the public-room flow: create and modify the room, leave it, get invited back, then refresh across multiple sessions. Trace how the Matrix SDK handles the invitation during refresh and compare the behavior seen in Element Web Client. Done means the creator's invitation remains visible after refresh in every session.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.