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

feat(ffi): add Client::public_rooms function #4187

Closed
wants to merge 1 commit into from

Conversation

jmartinesp
Copy link
Contributor

This is needed to get rooms from the public rooms directory. Also add ffi::PublicRoomsChunk structure to map the resulting data.

A customer couldn't find a way to use this feature in their fork because the method wasn't in the FFI layer, so I added it here.

  • Public API changes documented in changelogs (optional)

Signed-off-by:

…oms directory

Also add `ffi::PublicRoomsChunk` structure to map the resulting data.
@jmartinesp jmartinesp requested a review from a team as a code owner October 30, 2024 10:25
@jmartinesp jmartinesp requested review from andybalaam and removed request for a team October 30, 2024 10:25
@pixlwave
Copy link
Member

Shouldn't this be managed through the existing RoomDirectorySearch type, rather than exposing the raw API?

@jmartinesp
Copy link
Contributor Author

Shouldn't this be managed through the existing RoomDirectorySearch type, rather than exposing the raw API?

Ah, I didn't realise this already existed since I couldn't find the raw API call being used in the project. Closing this, I'll modify the directory search API then (if possible).

@jmartinesp jmartinesp closed this Oct 30, 2024
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.88%. Comparing base (5158b39) to head (1d4202f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4187      +/-   ##
==========================================
+ Coverage   84.87%   84.88%   +0.01%     
==========================================
  Files         271      271              
  Lines       29076    29076              
==========================================
+ Hits        24677    24682       +5     
+ Misses       4399     4394       -5     

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

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.

2 participants