Skip to content

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

Merged
merged 5 commits into from
Apr 15, 2025

Conversation

florianduros
Copy link
Member

@florianduros florianduros commented Apr 15, 2025

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.

  • Call decoration
  • Presence indicator

Copy link
Member

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?

Copy link
Member Author

@florianduros florianduros Apr 15, 2025

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

Copy link
Member

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

Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@florianduros florianduros added this pull request to the merge queue Apr 15, 2025
Merged via the queue into develop with commit 18a7250 Apr 15, 2025
32 checks passed
@florianduros florianduros deleted the florianduros/new-room-list/fix-icon-rerender branch April 15, 2025 17:11
acheong08 pushed a commit to acheong08/element-web that referenced this pull request Apr 30, 2025
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants