mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-03 04:27:35 +01:00
fix rust isCrossSigningVerified
This commit is contained in:
parent
d4d9a1068a
commit
178875b809
@ -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…
x
Reference in New Issue
Block a user