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

Fix permalink handling #4369

Merged
merged 2 commits into from
Nov 2, 2021
Merged

Conversation

Florian14
Copy link
Contributor

The whole link base url (eg. https://develop.element.io) was compared to the supported hosts list instead of the host part only (develop.element.io), causing the link not handled anymore (displaying a malformed link dialog, which was not true...)

whole link base url was compared to supported hosts instead of the host part only
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@@ -273,14 +273,13 @@ class HomeActivity :
val resolvedLink = when {
// Element custom scheme is not handled by the sdk, convert it to matrix.to link for compatibility
deepLink.startsWith(MATRIX_TO_CUSTOM_SCHEME_URL_BASE) -> {
val let = when {
when {
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the cleanup

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Can you add a small file for the changelog please?

@github-actions
Copy link

github-actions bot commented Oct 29, 2021

Unit Test Results

  62 files  ±0    62 suites  ±0   50s ⏱️ -1s
118 tests ±0  118 ✔️ ±0  0 💤 ±0  0 ±0 
350 runs  ±0  350 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 13dc0e0. ± Comparison against base commit 0d6e8bd.

♻️ This comment has been updated with latest results.

@Florian14 Florian14 merged commit 1971652 into develop Nov 2, 2021
@Florian14 Florian14 deleted the feature/fre/fix_permalink_handling branch November 2, 2021 08:36
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.

4 participants