mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 20:38:40 +00:00
Fix code quality.
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
package io.element.android.libraries.matrix.api.encryption.identity
|
||||
|
||||
enum class IdentityState {
|
||||
/** The user is verified with us */
|
||||
/** The user is verified with us. */
|
||||
Verified,
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -205,7 +205,7 @@ internal class RustEncryptionService(
|
||||
}
|
||||
|
||||
override suspend fun pinUserIdentity(userId: UserId): Result<Unit> = runCatching {
|
||||
val userIdentity = service.getUserIdentity(userId.value) ?: throw IllegalStateException("User identity not found")
|
||||
val userIdentity = service.getUserIdentity(userId.value) ?: error("User identity not found")
|
||||
userIdentity.pin()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user