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 inoperant room links with alias/identifiers #6396

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

aringenbach
Copy link
Contributor

@github-actions
Copy link

github-actions bot commented Jul 11, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/b1vFVS

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.

I'm not against this change, but I've added a comment inline with a small query.

Riot/Utils/UniversalLink.m Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #6396 (8cf52d4) into develop (6340e8f) will increase coverage by 0.04%.
The diff coverage is 40.00%.

@@             Coverage Diff             @@
##           develop    vector-im/element-web#6396      +/-   ##
===========================================
+ Coverage     6.22%    6.26%   +0.04%     
===========================================
  Files         1451     1451              
  Lines       155597   155599       +2     
  Branches     62507    62509       +2     
===========================================
+ Hits          9689     9756      +67     
+ Misses      145504   145437      -67     
- Partials       404      406       +2     
Impacted Files Coverage Δ
Riot/Utils/UniversalLink.m 65.54% <40.00%> (-1.13%) ⬇️
...rs/EncryptionKeyManager/EncryptionKeyManager.swift 35.41% <0.00%> (-4.17%) ⬇️
...ojiPicker/Data/EmojiMart/EmojiItem+EmojiMart.swift 95.34% <0.00%> (-0.31%) ⬇️
...xKit/Controllers/MXKAuthenticationViewController.m 19.05% <0.00%> (ø)
...ing/SplashScreen/View/OnboardingSplashScreen.swift 58.66% <0.00%> (+4.00%) ⬆️
...on/NavigationController/RiotNavigationController.m 76.08% <0.00%> (+10.86%) ⬆️
Riot/Categories/String.swift 33.33% <0.00%> (+11.11%) ⬆️
...Modules/Common/ViewModel/StateStoreViewModel.swift 50.00% <0.00%> (+19.44%) ⬆️
...SplashScreen/OnboardingSplashScreenViewModel.swift 53.84% <0.00%> (+42.30%) ⬆️
...dules/Room/EmojiPicker/Data/Store/EmojiStore.swift 93.02% <0.00%> (+93.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6340e8f...8cf52d4. Read the comment docs.

@sonarcloud
Copy link

sonarcloud bot commented Jul 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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.

Yeah that seems like a more sensible place to handle the error to me.

@aaronraimist
Copy link
Contributor

I haven't tested this PR but it appears to linkify room IDs. FWIW Element Web intentionally does not linkify room IDs
element-hq/element-meta#1592
element-hq/element-meta#1592

@aringenbach aringenbach merged commit b671b02 into develop Jul 12, 2022
@aringenbach aringenbach deleted the aringenbach/6395_fix_room_links branch July 12, 2022 07:28
@aringenbach
Copy link
Contributor Author

Thanks for raising this @aaronraimist

As a matter of fact these we're "always" linkified but the navigation stopped working even on servers that know or host the room. I raised a separate issue here: #6404 to actually remove the linkify.

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.

Login layout doesn't fit some languages (French in particular)
4 participants