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

Fail launch when unavailable crypto #1646

Merged
merged 3 commits into from
Dec 5, 2022
Merged

Fail launch when unavailable crypto #1646

merged 3 commits into from
Dec 5, 2022

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented Nov 29, 2022

Fail sync / session init when crypto module is required but unavailable. This can happen for instance when we fail to open the underlying database.

Previously this would just silently fail and continue syncing forever, now we propagate the error upwards and can display an error.

@Anderas Anderas requested review from a team and gileluard and removed request for a team November 29, 2022 10:08
Copy link
Contributor

@gileluard gileluard left a comment

Choose a reason for hiding this comment

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

lgtm

@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Base: 25.33% // Head: 25.32% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (f73c550) compared to base (8ebd8a7).
Patch coverage: 22.50% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1646      +/-   ##
===========================================
- Coverage    25.33%   25.32%   -0.01%     
===========================================
  Files          587      587              
  Lines        92790    92808      +18     
  Branches     40238    40248      +10     
===========================================
- Hits         23510    23508       -2     
- Misses       68503    68520      +17     
- Partials       777      780       +3     
Impacted Files Coverage Δ
MatrixSDK/Crypto/MXCryptoV2.swift 0.00% <0.00%> (-0.81%) ⬇️
MatrixSDK/Crypto/MXCrypto.m 64.47% <27.27%> (-0.81%) ⬇️
MatrixSDK/MXSession.m 39.62% <28.57%> (-0.13%) ⬇️
...ils/Categories/FileManager+AppGroupContainer.swift 83.33% <0.00%> (-16.67%) ⬇️
...xSDK/Crypto/Algorithms/Megolm/MXMegolmEncryption.m 89.36% <0.00%> (-2.30%) ⬇️
...Data/Store/MXRealmCryptoStore/MXRealmCryptoStore.m 71.53% <0.00%> (+0.22%) ⬆️
MatrixSDK/Space/MXSpaceService.swift 42.31% <0.00%> (+0.91%) ⬆️
... and 2 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.

@Anderas Anderas merged commit 4c860a8 into develop Dec 5, 2022
@Anderas Anderas deleted the andy/mandatory_crypto branch December 5, 2022 17:51
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