mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
fix rust isCrossSigningVerified
This commit is contained in:
parent
d4d9a1068a
commit
178875b809
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ import org.matrix.android.sdk.api.util.Optional
|
|||
|
||||
interface CrossSigningService {
|
||||
/**
|
||||
* Is our own device signed by our own cross signing identity.
|
||||
* Is our published identity trusted.
|
||||
*/
|
||||
suspend fun isCrossSigningVerified(): Boolean
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ internal class RustCrossSigningService @Inject constructor(
|
|||
*/
|
||||
override suspend fun isCrossSigningVerified(): Boolean {
|
||||
return when (val identity = olmMachine.getIdentity(olmMachine.userId())) {
|
||||
is OwnUserIdentity -> identity.trustsOurOwnDevice()
|
||||
is OwnUserIdentity -> identity.verified()
|
||||
else -> false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue