Skip to content

Fix room list often showing the wrong icons for calls#32881

Merged
robintown merged 6 commits intoelement-hq:developfrom
robintown:call-type-reactivity
Mar 26, 2026
Merged

Fix room list often showing the wrong icons for calls#32881
robintown merged 6 commits intoelement-hq:developfrom
robintown:call-type-reactivity

Conversation

@robintown
Copy link
Copy Markdown
Member

@robintown robintown commented Mar 21, 2026

The room list displays either a telephone or video camera icon depending on the type of call taking place in a room. But there were three four distinct issues preventing the room list from actually showing the correct icon at all times.

See commits for details; this begins with an accessibility improvement which I needed in order to even check the call type in our Playwright tests.

@florianduros
Copy link
Copy Markdown
Member

It seems to have caused regression (cf CI)

@robintown
Copy link
Copy Markdown
Member Author

Not a regression but indeed my testing efforts had a little flaw. Re-drafting for a sec.

Besides improving accessibility, this makes it possible to check for the presence of a call indicator in the room list in Playwright tests.
To use the results of CallStore.getRoom reactively, you need to listen for Call events, not ConnectedCalls events.
@robintown robintown force-pushed the call-type-reactivity branch from 741569e to 7165339 Compare March 24, 2026 17:36
If a Call object is created by way of someone starting a voice call, then of course the call's initial type needs to be 'voice'.
The type of a call may change over time; therefore room list items explicitly need to react to the changes.
If we notify listeners of a change in a call's type before actually making that change, the listeners will be working with glitched state. This would cause the room list to show the wrong call type in certain situations.
@robintown robintown enabled auto-merge March 25, 2026 19:12
@robintown robintown closed this Mar 25, 2026
auto-merge was automatically disabled March 25, 2026 20:47

Pull request was closed

@robintown robintown reopened this Mar 25, 2026
@robintown robintown enabled auto-merge March 25, 2026 20:48
@robintown robintown added this pull request to the merge queue Mar 25, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 25, 2026
@robintown robintown added this pull request to the merge queue Mar 26, 2026
Merged via the queue into element-hq:develop with commit 5a074e6 Mar 26, 2026
88 checks passed
@robintown robintown deleted the call-type-reactivity branch March 26, 2026 10:44
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.

3 participants