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

RoomMember user-object strange behavior

Open
#1,733 1 comment 0 reactions 0 assignees View on GitHub

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...)
![Bildschirmfoto von 2021-06-10 14-01-17](https://user-images.githubusercontent.com/41160506/121540232-9bf3e900-ca06-11eb-9944-d1f3a91a5768.png)

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.