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 an infinite loop when tapping an unjoined room alias. #6522

Merged
merged 3 commits into from
Aug 4, 2022

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Aug 3, 2022

When tapping on an unjoined room alias, the app delegate would look up the room ID for it, but as the link wasn't updated when it attempted to handle the new fragment the look up was made again.

Fixes #6492.

@github-actions
Copy link

github-actions bot commented Aug 3, 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/d6sSbf

@codecov-commenter
Copy link

Codecov Report

Merging #6522 (f398c7f) into develop (c9e916b) will decrease coverage by 0.00%.
The diff coverage is 24.32%.

@@             Coverage Diff             @@
##           develop    #6522      +/-   ##
===========================================
- Coverage     6.20%    6.19%   -0.01%     
===========================================
  Files         1462     1462              
  Lines       157168   157179      +11     
  Branches     63166    63164       -2     
===========================================
- Hits          9745     9741       -4     
- Misses      147014   147031      +17     
+ Partials       409      407       -2     
Impacted Files Coverage Δ
Riot/Modules/Application/LegacyAppDelegate.m 13.33% <0.00%> (-0.31%) ⬇️
...iot/Modules/Common/Recents/RecentsViewController.m 8.17% <0.00%> (+0.16%) ⬆️
...Modules/Communities/Home/GroupHomeViewController.m 0.00% <0.00%> (ø)
Riot/Modules/Room/RoomViewController.m 0.00% <0.00%> (ø)
...SharingViewer/View/LiveLocationSharingViewer.swift 0.00% <0.00%> (ø)
Riot/Utils/UniversalLink.m 60.80% <42.85%> (-5.87%) ⬇️
...iewControllerWithBannerWrapperViewController.swift 46.91% <100.00%> (+2.04%) ⬆️
Config/CommonConfiguration.swift 85.71% <0.00%> (-5.20%) ⬇️
Riot/Managers/Call/CallPresenter.swift 1.08% <0.00%> (-5.14%) ⬇️
...rs/EncryptionKeyManager/EncryptionKeyManager.swift 35.41% <0.00%> (-4.17%) ⬇️
... and 7 more

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 a7ef5c3...f398c7f. Read the comment docs.

Copy link
Contributor

@ismailgulek ismailgulek left a comment

Choose a reason for hiding this comment

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

Couple of suggestions. Would like to hear if those make sense. Otherwise LGTM!

@pixlwave
Copy link
Member Author

pixlwave commented Aug 4, 2022

Yep, all 3 make sense to me. Thank for the suggestions, I hadn't thought about doing it like that 👍

@sonarcloud
Copy link

sonarcloud bot commented Aug 4, 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
Contributor

@ismailgulek ismailgulek left a comment

Choose a reason for hiding this comment

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

LGTM!

@pixlwave pixlwave merged commit b771304 into develop Aug 4, 2022
@pixlwave pixlwave deleted the doug/6492-universal-links branch August 4, 2022 14:41
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.

Unable to tap room links for rooms that have not yet been joined
3 participants