Fix compilation issues.

This commit is contained in:
Benoit Marty 2024-10-08 10:27:07 +02:00
parent 5baefd479f
commit bc62f8cfce
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ fun IdentityChangeStateView(
addLink(
url = LinkAnnotation.Url(
url = LearnMoreConfig.IDENTITY_CHANGE_URL,
linkInteractionListener = { t ->
linkInteractionListener = {
onLinkClick(LearnMoreConfig.IDENTITY_CHANGE_URL)
}
),

View file

@ -205,7 +205,7 @@ internal class RustEncryptionService(
}
override suspend fun pinUserIdentity(userId: UserId): Result<Unit> = runCatching {
val userIdentity = service.getUserIdentity(userId.value)
val userIdentity = service.getUserIdentity(userId.value) ?: throw IllegalStateException("User identity not found")
userIdentity.pin()
}
}