-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New room list: fix incorrect decoration #29770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New room list: fix incorrect decoration #29770
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're in the area: useDMPresence
doesn't seem to work quite right, getDMUser
is not stable and can change, so should react to changes to m.direct
- maybe use useDmMember
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I used useDmMember
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like WithPresenceIndicator also has a usePresence
which could likely replace the majority of the rest of the below hook
28133ef
to
901bf37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* fix(call): reset call value when the roomId changes * fix(call): reset presence indicator when the room changes * refactor: use existing `usePresence` * test: fix room avatar view test * test: update snapshots
Task https://github.com/element-hq/wat-internal/issues/204
When changing the filters, the decorations weren't recomputed and an incorrect decoration can appears on the wrong room.