Skip to content

Commit

Permalink
fix crash when downloading certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
mchenani committed Jul 12, 2024
1 parent f26629d commit f01ef17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class E2eiCertificateDetailsViewModel @Inject constructor(
navArgs.certificateDetails.certificate

is E2EICertificateDetails.AfterLoginCertificateDetails ->
navArgs.certificateDetails.mlsClientIdentity.x509Identity!!.certificate
navArgs.certificateDetails.mlsClientIdentity.x509Identity?.certificate ?: ""
}

fun userHandle() =
Expand All @@ -72,7 +72,7 @@ class E2eiCertificateDetailsViewModel @Inject constructor(
selfUserHandle

is E2EICertificateDetails.AfterLoginCertificateDetails ->
navArgs.certificateDetails.mlsClientIdentity.x509Identity!!.certificate
navArgs.certificateDetails.mlsClientIdentity.x509Identity?.handle?.handle ?: ""
}

fun getCertificateName(): String {
Expand Down

0 comments on commit f01ef17

Please sign in to comment.