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

Download device keys for self prior to verification checks #7142

Merged
merged 2 commits into from
Dec 8, 2022

Conversation

hughns
Copy link
Member

@hughns hughns commented Dec 7, 2022

This PR resolves the equivalent of element-hq/element-android#7676 but for iOS.

There is a race in the current QR implementation around device keys.

Pull Request Checklist

  • I read the contributing guide
  • UI change has been tested on both light and dark themes, in portrait and landscape orientations and on iPhone and iPad simulators
  • Accessibility has been taken into account.
  • Pull request is based on the develop branch
  • Pull request contains a changelog file in ./changelog.d
  • You've made a self review of your PR
  • Pull request includes screenshots or videos of UI changes
  • Pull request includes a sign off

Signed-off-by: Hugh Nimmo-Smith [email protected]

@hughns hughns marked this pull request as ready for review December 7, 2022 15:43
@sonarcloud
Copy link

sonarcloud bot commented Dec 7, 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

@codecov
Copy link

codecov bot commented Dec 7, 2022

Codecov Report

Base: 11.74% // Head: 11.75% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (cc7ff36) compared to base (1efa7c1).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #7142   +/-   ##
========================================
  Coverage    11.74%   11.75%           
========================================
  Files         1621     1621           
  Lines       159428   159443   +15     
  Branches     64922    64929    +7     
========================================
+ Hits         18732    18735    +3     
- Misses      140058   140070   +12     
  Partials       638      638           
Flag Coverage Δ
unittests 5.98% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ogin/Common/Service/MatrixSDK/QRLoginService.swift 7.28% <0.00%> (-0.27%) ⬇️
...ojiPicker/Data/EmojiMart/EmojiItem+EmojiMart.swift 95.65% <0.00%> (+0.30%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

Looks more than resonable to me 👍

@hughns hughns merged commit e6ba296 into develop Dec 8, 2022
@hughns hughns deleted the hughns/qr-device-race branch December 8, 2022 16:48
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.

2 participants