element-hq / element-hq/element-web

Room pill uses display name/avatar from a previous time (or tombstoned room)

Open
#26,934 0 comments 0 reactions 0 assignees View on GitHub
A-Avatar O-Occasional S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Unclear exactly which steps. I've made assumptions here.

1. Set a display name and avatar on a room.
2. Upgrade it
3. In the new one, change that display name and avatar
4. Link to the room via alias in a message

It's possible this is another alias cache issue: both rooms might have the alias set in state (but obviously not in the directory), which is confusing the renderer.

### Outcome

#### What did you expect?

The latest room's name and avatar.

#### What happened instead?

While composing, the right details were used. Upon sending it was also okay briefly. Suddenly, it went back in time for unknown reasons.

Mention:
![image](https://github.com/element-hq/element-web/assets/1190097/b8afc049-d5a4-4eaf-a799-3f4249ccff4e)

Room:
![image](https://github.com/element-hq/element-web/assets/1190097/bbaf4d55-95da-44f6-a89b-d1a98c7706d4)

### Operating system

Windows 11

### Application version

Element Nightly version: 0.0.1-nightly.2024012501 Crypto version: Olm 3.2.15

### How did you install the app?

The Internet

### Homeserver

t2l.io

### Will you send logs?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.