mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Using orFalse() extension method on nullable boolean
This commit is contained in:
parent
c45f536855
commit
45b138e53d
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ import im.vector.app.core.di.ActiveSessionHolder
|
|||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.emptyFlow
|
||||
import kotlinx.coroutines.flow.map
|
||||
import org.matrix.android.sdk.api.extensions.orFalse
|
||||
import org.matrix.android.sdk.api.session.crypto.crosssigning.MXCrossSigningInfo
|
||||
import org.matrix.android.sdk.api.util.Optional
|
||||
import org.matrix.android.sdk.flow.flow
|
||||
|
@ -41,7 +42,7 @@ class GetCurrentSessionCrossSigningInfoUseCase @Inject constructor(
|
|||
return CurrentSessionCrossSigningInfo(
|
||||
deviceId = deviceId,
|
||||
isCrossSigningInitialized = mxCrossSigningInfo.getOrNull() != null,
|
||||
isCrossSigningVerified = mxCrossSigningInfo.getOrNull()?.isTrusted() == true
|
||||
isCrossSigningVerified = mxCrossSigningInfo.getOrNull()?.isTrusted().orFalse()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue