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

Do not reset device keys if migrating to CryptoSDK #7369

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented Feb 13, 2023

Legacy crypto does some kind of patchwork and resets device keys on session reload. In practice this means that we reset all tracked users, and when migrating to CryptoSDK we do not have any of the tracked users information.

To solve this we simply avoid resetting device keys when the cryptoSDK feature flag has just been enabled (note that the next time we are resetting session, crypto will no longer be the MXLegacyCrypto type)

@Anderas Anderas requested review from a team and stefanceriu and removed request for a team February 13, 2023 11:14
@sonarcloud
Copy link

sonarcloud bot commented Feb 13, 2023

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 Feb 13, 2023

Codecov Report

Base: 12.08% // Head: 12.11% // Increases project coverage by +0.03% 🎉

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

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7369      +/-   ##
===========================================
+ Coverage    12.08%   12.11%   +0.03%     
===========================================
  Files         1638     1638              
  Lines       161939   162001      +62     
  Branches     66480    66527      +47     
===========================================
+ Hits         19568    19627      +59     
- Misses      141725   141728       +3     
  Partials       646      646              
Flag Coverage Δ
uitests 55.54% <ø> (+0.17%) ⬆️
unittests 5.97% <0.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
Riot/Modules/MatrixKit/Models/Account/MXKAccount.m 11.04% <0.00%> (ø)
...Modules/Home/AllChats/AllChatsViewController.swift 29.22% <0.00%> (-0.14%) ⬇️
.../Modules/MatrixKit/Models/Room/MXKRoomDataSource.m 12.88% <0.00%> (-0.07%) ⬇️
...Modules/Common/Recents/Views/RecentTableViewCell.m 0.00% <0.00%> (ø)
...ules/MatrixKit/Models/RoomList/MXKRecentCellData.m 0.00% <0.00%> (ø)
.../WYSIWYGInputToolbar/WysiwygInputToolbarView.swift 0.00% <0.00%> (ø)
.../View/MentionsAndKeywordNotificationSettings.swift 0.00% <0.00%> (ø)
...yWait/KeyVerificationSelfVerifyWaitViewModel.swift 0.00% <0.00%> (ø)
...ait/KeyVerificationSelfVerifyWaitCoordinator.swift 0.00% <0.00%> (ø)
.../MatrixSDK/MXRoomNotificationSettingsService.swift 0.00% <0.00%> (ø)
... and 6 more

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.

👍

@Anderas Anderas merged commit 835b2dd into develop Feb 13, 2023
@Anderas Anderas deleted the andy/crypto_fixes branch February 13, 2023 13:01
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