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

feat: E2EI SoftLock #16406

Merged
merged 5 commits into from
Jan 2, 2024
Merged

feat: E2EI SoftLock #16406

merged 5 commits into from
Jan 2, 2024

Conversation

przemvs
Copy link
Contributor

@przemvs przemvs commented Dec 20, 2023

Description

Screenshots/Screencast (for UI changes)

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

Important details for the reviewers

(Delete this section if unnecessary)

  • use (x) data
  • can be reviewed commit-by-commit
  • be sure to look at ...

@@ -262,10 +262,12 @@ export class E2EIHandler extends TypedEventEmitter<Events> {
this.currentStep = E2EIHandlerStep.INITIALIZED;
}

const isFreshMLSSelfClient = void this.coreE2EIService.isFreshMLSSelfClient();
Copy link
Contributor

Choose a reason for hiding this comment

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

This is very weird, voiding the result of the function will always yield undefined

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yee.. I see, looking for issue :)

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

Attention: 34 lines in your changes are missing coverage. Please review.

Comparison is base (4d1d977) 45.53% compared to head (5b0f9bb) 45.48%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #16406      +/-   ##
==========================================
- Coverage   45.53%   45.48%   -0.05%     
==========================================
  Files         735      736       +1     
  Lines       24021    24054      +33     
  Branches     5455     5466      +11     
==========================================
+ Hits        10938    10942       +4     
- Misses      11686    11713      +27     
- Partials     1397     1399       +2     

@@ -71,6 +71,10 @@
"E2EI.updateCertificate": "Update Certificate",
"E2EI.valid": "Valid",
"E2EI.verified": "Verified (End-to-end Identity)",
"E2EI.SoftLock.Heading": "End-to-end identity certificate",
"E2EI.SoftLock.Content": "Your team now uses end-to-end identity to make Wire’s usage more secure. The device verification takes place automatically using a certificate.<br /><br />Enter your identity provider’s credentials in the next step to automatically get a verification certificate for this device.",
Copy link
Contributor

Choose a reason for hiding this comment

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

There should not be html in our translations.
We should split this into multiple translation keys

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not used. Forgot to remove it.

Comment on lines 232 to 234
const isFreshMLSSelfClient = await this.coreE2EIService.isFreshMLSSelfClient();

this.showE2EINotificationMessage(isFreshMLSSelfClient);
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's save this info in the config (since it's passed to initialize) and avoid recomputing it (or do we need to recompute it at this point?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

gracePeriodExpiredCallback: () => {
this.showE2EINotificationMessage();
gracePeriodExpiredCallback: async () => {
const isFreshMLSSelfClient = await this.coreE2EIService.isFreshMLSSelfClient();
Copy link
Contributor

Choose a reason for hiding this comment

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

can't we use the freshMLSSelfClient prop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

delayPeriodExpiredCallback: () => {
this.showE2EINotificationMessage();
delayPeriodExpiredCallback: async () => {
const isFreshMLSSelfClient = await this.coreE2EIService.isFreshMLSSelfClient();
Copy link
Contributor

Choose a reason for hiding this comment

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

can't we use the freshMLSSelfClient prop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@przemvs przemvs merged commit 0dc2d06 into dev Jan 2, 2024
8 checks passed
@przemvs przemvs deleted the feat/e2ei-soft-lock branch January 2, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants