-
Notifications
You must be signed in to change notification settings - Fork 748
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
Add client base url support for permalinks #4027
Conversation
3968131
to
1d5ece7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, nice work!
I've made some remarks.
Also @ganfra can you make a review too please?
...ix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/MatrixToMapper.kt
Outdated
Show resolved
Hide resolved
...ix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/MatrixToMapper.kt
Outdated
Show resolved
Hide resolved
...x-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/PermalinkParser.kt
Show resolved
Hide resolved
...-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/PermalinkService.kt
Outdated
Show resolved
Hide resolved
...-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/PermalinkService.kt
Show resolved
Hide resolved
...ix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/MatrixToMapper.kt
Outdated
Show resolved
Hide resolved
...ix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/MatrixToMapper.kt
Outdated
Show resolved
Hide resolved
1d5ece7
to
054fc96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one remark for me. Otherwise LGTM, but not tested
...-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/PermalinkService.kt
Show resolved
Hide resolved
Also convert links to matrix.to before permalink parsing
054fc96
to
86dc340
Compare
...x-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/PermalinkParser.kt
Outdated
Show resolved
Hide resolved
matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/MatrixConfiguration.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/permalink/PermalinkHandler.kt
Show resolved
Hide resolved
86dc340
to
3c82187
Compare
3c82187
to
fa3abec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update!
This PR adds a field
clientPermalinkBaseUrl
into theMatrixConfiguration
object.If not null, this base url will be used to generate custom permalinks instead of usual
matrix.to
links.eg. "https://www.example.org/#" for "https://www.example.org/#/room/#element-android:matrix.org"