Skip to content
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

Use both the room list room and the room preview details to populate the join room screen #3062

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

stefanceriu
Copy link
Member

  • the room summary API is indeed enabled on matrix.org and working fine for most rooms
  • it is not however capable of giving us data about non-joined + private rooms
  • the SDK addresses that by first trying to use known rooms before resorting to the preview endpoint
  • that fails if it's a brand new room that the client doesn't know about yet i.e. a sync hasn't ran, which is exactly what's happening here
  • the ClientProxy instead does wait for the room list to go into the first loaded before returning the room

@stefanceriu stefanceriu added the pr-bugfix for bug fix label Jul 18, 2024
@stefanceriu stefanceriu requested a review from a team as a code owner July 18, 2024 13:49
@stefanceriu stefanceriu requested review from pixlwave and removed request for a team July 18, 2024 13:49
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

Nice! 😎

@pixlwave
Copy link
Member

Also, sorry for the conflicts.

…s to populate the join room screen

- the room summary API is indeed enabled on matrix.org and working fine for most rooms
- it is not however capable of giving us data about non-joined + private rooms
- the SDK addresses that by first trying to use known rooms before resorting to the preview endpoint
- that fails if it's a brand new room that the client doesn't know about yet i.e. a sync hasn't ran, which is exactly what's happening here
- the ClientProxy instead does wait for the room list to go into the first loaded before returning the room
Copy link

sonarcloud bot commented Jul 18, 2024

Copy link

codecov bot commented Jul 18, 2024

Codecov Report

Attention: Patch coverage is 90.62500% with 3 lines in your changes missing coverage. Please review.

Project coverage is 77.32%. Comparing base (86ce3de) to head (c563ef7).

Files Patch % Lines
...reens/JoinRoomScreen/JoinRoomScreenViewModel.swift 90.32% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3062      +/-   ##
===========================================
- Coverage    77.33%   77.32%   -0.02%     
===========================================
  Files          699      699              
  Lines        54407    54458      +51     
===========================================
+ Hits         42078    42108      +30     
- Misses       12329    12350      +21     
Flag Coverage Δ
unittests 68.57% <90.62%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@stefanceriu stefanceriu merged commit f1de42a into develop Jul 18, 2024
10 checks passed
@stefanceriu stefanceriu deleted the stefan/2840 branch July 18, 2024 17:11
@stefanceriu stefanceriu changed the title Fixes #2840 - Use both the room list room and the room preview details to populate the join room screen Use both the room list room and the room preview details to populate the join room screen Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix for bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants