matrix-org / matrix-org/matrix-js-sdk
RoomMember user-object strange behavior
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.2k
- Forks
- 704
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 40
Description
I try to get the `user.presence` of the members, but some of the members have `user=null` user-object set.
I don't use encryption in this room.
In some cases different users as before have user-object set to null.
I get the rommembers by calling `room.getMembers()`
More information can be seen on the screenshot.
If i'm logged in with the element app on my phone this member has a user-object but shouldnt the members have always a user object but with presence set to offline? (another user in this rooms behaves like this...)

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing room.getMembers() and the RoomMember user and presence behavior described in the issue. Reproduce the null-user case in a non-encrypted room and compare it with the Element app; done means the conditions for a missing user object are understood and the observed behavior is corrected or clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100