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

FFI: Allow the creation of a matrix.to link for any room alias. #3358

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

pixlwave
Copy link
Member

Whilst the FFI currently supports creating a matrix.to room alias link directly from a Room, there isn't a way to do so when you already have one as a string. This PR fixes that by adding a global matrix_to_room_alias_permalink method similar to the existing matrix_to_user_permalink method. (This is only useful against an alias, as a plain room ID doesn't provide enough info to construct the URL with the necessary via parameters).

@pixlwave pixlwave requested a review from a team as a code owner April 29, 2024 09:46
@pixlwave pixlwave requested review from bnjbvr and removed request for a team April 29, 2024 09:46
Copy link
Contributor

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

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

Looks in line with matrix_to_user_permalink so seems good to me. Thanks!

@pixlwave
Copy link
Member Author

Thanks for the super quick review 🙌

@bnjbvr bnjbvr enabled auto-merge (rebase) April 29, 2024 09:57
Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.63%. Comparing base (5e2a246) to head (48136c7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3358      +/-   ##
==========================================
- Coverage   83.65%   83.63%   -0.02%     
==========================================
  Files         242      242              
  Lines       25012    25012              
==========================================
- Hits        20923    20919       -4     
- Misses       4089     4093       +4     

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

@bnjbvr bnjbvr merged commit 4618d7c into main Apr 29, 2024
35 checks passed
@bnjbvr bnjbvr deleted the doug/room-alias-permalink branch April 29, 2024 10:00
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