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

Ensure algorithm instance is created and stored #4924

Merged
merged 3 commits into from
Jan 12, 2022

Conversation

BillCarsonFr
Copy link
Member

Ensure that algorithm instance is created and cached when setEncryptionInRoom is called even if no alg change

@@ -578,7 +578,7 @@ internal class DefaultCryptoService @Inject constructor(
// (for now at least. Maybe we should alert the user somehow?)
val existingAlgorithm = cryptoStore.getRoomAlgorithm(roomId)

if (existingAlgorithm == algorithm) {
if (existingAlgorithm == algorithm && roomEncryptorsStore.get(roomId) != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be helpful to split the conditions into separate ifs/whens in order to provide unique logs?

@github-actions
Copy link

github-actions bot commented Jan 12, 2022

Unit Test Results

  66 files  ±0    66 suites  ±0   50s ⏱️ -6s
135 tests ±0  135 ✔️ ±0  0 💤 ±0  0 ±0 
418 runs  ±0  418 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit a35fec2. ± Comparison against base commit 848a7f4.

♻️ This comment has been updated with latest results.

@ouchadam
Copy link
Contributor

can confirm this fixes the issue for me

BEFORE AFTER
Screenshot_20220112_102015 Screenshot_20220112_102147

@bmarty bmarty mentioned this pull request Jan 12, 2022
56 tasks
@bmarty
Copy link
Member

bmarty commented Jan 12, 2022

Also confirm the bugs are fixed on my side. I do not wait for the CI, only the changelog added.

@bmarty bmarty merged commit 1bde257 into develop Jan 12, 2022
@bmarty bmarty deleted the feature/bca/fix_broken_crypto branch January 12, 2022 11:26
@bmarty bmarty mentioned this pull request Jan 12, 2022
56 tasks
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.

4 participants