Separates some method parameters

This commit is contained in:
ericdecanini 2022-05-24 15:26:24 +02:00
parent 3f3662e605
commit 6c21a6b48d
5 changed files with 13 additions and 7 deletions

View file

@ -200,7 +200,8 @@ interface KeysBackupService {
*/
fun restoreKeysWithRecoveryKey(
keysVersionResult: KeysVersionResult,
recoveryKey: String, roomId: String?,
recoveryKey: String,
roomId: String?,
sessionId: String?,
stepProgressListener: StepProgressListener?,
callback: MatrixCallback<ImportRoomKeysResult>

View file

@ -483,8 +483,12 @@ internal interface IMXCryptoStore {
fun getWithHeldMegolmSession(roomId: String, sessionId: String): RoomKeyWithHeldContent?
fun markedSessionAsShared(
roomId: String?, sessionId: String, userId: String, deviceId: String,
deviceIdentityKey: String, chainIndex: Int
roomId: String?,
sessionId: String,
userId: String,
deviceId: String,
deviceIdentityKey: String,
chainIndex: Int
)
/**

View file

@ -59,7 +59,8 @@ internal abstract class DefaultVerificationTransaction(
protected fun trust(
canTrustOtherUserMasterKey: Boolean,
toVerifyDeviceIds: List<String>,
eventuallyMarkMyMasterKeyAsTrusted: Boolean, autoDone: Boolean = true
eventuallyMarkMyMasterKeyAsTrusted: Boolean,
autoDone: Boolean = true
) {
Timber.d("## Verification: trust ($otherUserId,$otherDeviceId) , verifiedDevices:$toVerifyDeviceIds")
Timber.d("## Verification: trust Mark myMSK trusted $eventuallyMarkMyMasterKeyAsTrusted")

View file

@ -36,8 +36,7 @@ internal abstract class BindThreePidsTask : Task<BindThreePidsTask.Params, Unit>
internal class DefaultBindThreePidsTask @Inject constructor(
private val profileAPI: ProfileAPI,
private val identityStore: IdentityStore,
@AuthenticatedIdentity
private val accessTokenProvider: AccessTokenProvider,
@AuthenticatedIdentity private val accessTokenProvider: AccessTokenProvider,
private val globalErrorReceiver: GlobalErrorReceiver
) : BindThreePidsTask() {
override suspend fun execute(params: Params) {

View file

@ -125,7 +125,8 @@ class LoginWebFragment2 @Inject constructor(
views.loginWebWebView.webViewClient = object : WebViewClient() {
override fun onReceivedSslError(
view: WebView, handler: SslErrorHandler,
view: WebView,
handler: SslErrorHandler,
error: SslError
) {
MaterialAlertDialogBuilder(requireActivity())