Skip to content

fix(ui): Undo an optimisation to start at SettingUp#5852

Merged
Hywan merged 1 commit intomatrix-org:mainfrom
Hywan:fix-ui-room-list-do-not-start-at-setting-up
Nov 11, 2025
Merged

fix(ui): Undo an optimisation to start at SettingUp#5852
Hywan merged 1 commit intomatrix-org:mainfrom
Hywan:fix-ui-room-list-do-not-start-at-setting-up

Conversation

@Hywan
Copy link
Copy Markdown
Member

@Hywan Hywan commented Nov 11, 2025

This patch undo an optimisation that was initialising the RoomListService at the SettingUp state if a pos value was recovered successfully (see bbf9bf2 from #4741). The problem is that it starts with a range of 0..99 instead of 0..19, which can slow things done in particular cases. Whilst a good idea on paper, it's not in practise. So let's continue to recover the pos, but let's keep starting at the Init state.

This patch undo an optimisation that was initialising the
`RoomListService` at the `SettingUp` state if a `pos` value was
recovered successfully (see bbf9bf2).
The problem is that it starts with a range of 0..99 instead of 0..19,
which can slow things done in particular cases. Whilst a good idea on
paper, it's not in practise. So let's continue to recover the `pos`, but
let's keep starting at the `Init` state.
@Hywan Hywan requested a review from a team as a code owner November 11, 2025 11:46
@Hywan Hywan requested review from a team, andybalaam, pixlwave and stefanceriu and removed request for a team and andybalaam November 11, 2025 11:46
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.60%. Comparing base (fff270d) to head (15c3008).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5852   +/-   ##
=======================================
  Coverage   88.59%   88.60%           
=======================================
  Files         361      361           
  Lines      102287   102280    -7     
  Branches   102287   102280    -7     
=======================================
- Hits        90624    90621    -3     
+ Misses       7444     7440    -4     
  Partials     4219     4219           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Nov 11, 2025

CodSpeed Performance Report

Merging #5852 will not alter performance

Comparing Hywan:fix-ui-room-list-do-not-start-at-setting-up (15c3008) with main (46d05d8)

Summary

✅ 50 untouched

Copy link
Copy Markdown
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

Makes sense to me 👍

@Hywan Hywan merged commit e79f832 into matrix-org:main Nov 11, 2025
53 checks passed
@pixlwave
Copy link
Copy Markdown
Member

Related: element-hq/element-x-ios#4728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants