mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Small cleanup before merge
This commit is contained in:
parent
d49d0295a2
commit
28869f4382
@ -1234,7 +1234,7 @@ internal class DefaultVerificationService @Inject constructor(
|
||||
)
|
||||
|
||||
// We can SCAN or SHOW QR codes only if cross-signing is enabled
|
||||
val methodValues = if (crossSigningService.getMyCrossSigningKeys() != null) {
|
||||
val methodValues = if (crossSigningService.isCrossSigningInitialized()) {
|
||||
// Add reciprocate method if application declares it can scan or show QR codes
|
||||
// Not sure if it ok to do that (?)
|
||||
val reciprocateMethod = methods
|
||||
|
@ -118,9 +118,10 @@ class DefaultNavigator @Inject constructor(
|
||||
|
||||
override fun requestSelfSessionVerification(context: Context) {
|
||||
val session = sessionHolder.getSafeActiveSession() ?: return
|
||||
val otherSessions = session.cryptoService().getCryptoDeviceInfo(session.myUserId).filter {
|
||||
it.deviceId != session.sessionParams.deviceId
|
||||
}.map { it.deviceId }
|
||||
val otherSessions = session.cryptoService()
|
||||
.getCryptoDeviceInfo(session.myUserId)
|
||||
.filter { it.deviceId != session.sessionParams.deviceId }
|
||||
.map { it.deviceId }
|
||||
if (context is VectorBaseActivity) {
|
||||
if (otherSessions.isNotEmpty()) {
|
||||
val pr = session.cryptoService().verificationService().requestKeyVerification(
|
||||
|
Loading…
Reference in New Issue
Block a user