mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Linting
This commit is contained in:
parent
411b766890
commit
6426ff40d3
1 changed files with 5 additions and 2 deletions
|
@ -91,7 +91,11 @@ class Rendezvous(
|
|||
|
||||
if (incompatible) {
|
||||
send(Payload(PayloadType.Finish, intent = ourIntent))
|
||||
val reason = if (ourIntent == RendezvousIntent.LOGIN_ON_NEW_DEVICE) RendezvousFailureReason.OtherDeviceNotSignedIn else RendezvousFailureReason.OtherDeviceAlreadySignedIn
|
||||
val reason = if (ourIntent == RendezvousIntent.LOGIN_ON_NEW_DEVICE) {
|
||||
RendezvousFailureReason.OtherDeviceNotSignedIn
|
||||
} else {
|
||||
RendezvousFailureReason.OtherDeviceAlreadySignedIn
|
||||
}
|
||||
channel.cancel(reason)
|
||||
}
|
||||
|
||||
|
@ -175,7 +179,6 @@ class Rendezvous(
|
|||
Timber.tag(TAG).i("Setting device $verifyingDeviceId as verified")
|
||||
crypto.setDeviceVerification(DeviceTrustLevel(locallyVerified = true, crossSigningVerified = false), userId, verifyingDeviceId)
|
||||
|
||||
// TODO: what do we do with the master key?
|
||||
verificationResponse.masterKey ?.let { masterKeyFromVerifyingDevice ->
|
||||
// set master key as trusted
|
||||
crypto.crossSigningService().getMyCrossSigningKeys()?.masterKey()?.let { localMasterKey ->
|
||||
|
|
Loading…
Reference in a new issue