Fix compilation issues.

This commit is contained in:
Benoit Marty 2024-10-08 10:27:07 +02:00
parent 57e45aa834
commit 351f058f06
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -205,7 +205,7 @@ internal class RustEncryptionService(
} }
override suspend fun pinUserIdentity(userId: UserId): Result<Unit> = runCatching { 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() userIdentity.pin()
} }
} }