Fix missing implem

This commit is contained in:
valere 2023-05-11 10:48:28 +02:00
parent 7d9330b2ee
commit 1a1f6810e2
2 changed files with 11 additions and 17 deletions

View File

@ -238,6 +238,6 @@ internal class RustCrossSigningService @Inject constructor(
override fun checkOtherMSKTrusted(myCrossSigningInfo: MXCrossSigningInfo?, otherInfo: MXCrossSigningInfo?): UserTrustResult { override fun checkOtherMSKTrusted(myCrossSigningInfo: MXCrossSigningInfo?, otherInfo: MXCrossSigningInfo?): UserTrustResult {
// is this needed in rust? should be moved to internal API? // is this needed in rust? should be moved to internal API?
TODO() UserTrustResult.Failure("Not used in rust")
} }
} }

View File

@ -241,12 +241,8 @@ class DefaultNavigator @Inject constructor(
} }
if (context is AppCompatActivity) { if (context is AppCompatActivity) {
TODO() SelfVerificationBottomSheet.forTransaction(tx.transactionId)
// VerificationBottomSheet.withArgs( .show(context.supportFragmentManager, "VERIF")
// roomId = null,
// otherUserId = otherUserId,
// transactionId = sasTransactionId
// ).show(context.supportFragmentManager, "REQPOP")
} }
} }
} }
@ -254,16 +250,14 @@ class DefaultNavigator @Inject constructor(
override fun requestSessionVerification(context: Context, otherSessionId: String) { override fun requestSessionVerification(context: Context, otherSessionId: String) {
coroutineScope.launch { coroutineScope.launch {
val session = sessionHolder.getSafeActiveSession() ?: return@launch val session = sessionHolder.getSafeActiveSession() ?: return@launch
// val pr = val request = session.cryptoService().verificationService().requestDeviceVerification(
session.cryptoService().verificationService().requestSelfKeyVerification( supportedVerificationMethodsProvider.provide(),
supportedVerificationMethodsProvider.provide() session.myUserId,
otherSessionId
) )
if (context is AppCompatActivity) { if (context is AppCompatActivity) {
TODO() SelfVerificationBottomSheet.forTransaction(request.transactionId)
// VerificationBottomSheet.withArgs( .show(context.supportFragmentManager, "VERIF")
// otherUserId = session.myUserId,
// transactionId = pr.requestId()
// ).show(context.supportFragmentManager)
} }
} }
} }