File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
matrix-sdk-android/src/main/java/org/matrix/android/sdk
vector/src/main/java/im/vector/app/features Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org.matrix.android.sdk.api.session.crypto
18
18
19
- import android.content.Context
20
19
import androidx.annotation.Size
21
20
import androidx.lifecycle.LiveData
22
21
import androidx.paging.PagedList
@@ -61,7 +60,7 @@ interface CryptoService {
61
60
62
61
suspend fun deleteDevices (@Size(min = 1 ) deviceIds : List <String >, userInteractiveAuthInterceptor : UserInteractiveAuthInterceptor )
63
62
64
- fun getCryptoVersion (context : Context , longFormat : Boolean ): String
63
+ fun getCryptoVersion (longFormat : Boolean ): String
65
64
66
65
fun isCryptoEnabled (): Boolean
67
66
Original file line number Diff line number Diff line change 16
16
17
17
package org.matrix.android.sdk.internal.crypto
18
18
19
- import android.content.Context
20
19
import androidx.lifecycle.LiveData
21
20
import androidx.lifecycle.map
22
21
import androidx.paging.PagedList
@@ -184,7 +183,7 @@ internal class RustCryptoService @Inject constructor(
184
183
deleteDevices(listOf (deviceId), userInteractiveAuthInterceptor)
185
184
}
186
185
187
- override fun getCryptoVersion (context : Context , longFormat : Boolean ): String {
186
+ override fun getCryptoVersion (longFormat : Boolean ): String {
188
187
val version = org.matrix.rustcomponents.sdk.crypto.version()
189
188
val gitHash = org.matrix.rustcomponents.sdk.crypto.versionInfo().gitSha
190
189
val vodozemac = org.matrix.rustcomponents.sdk.crypto.vodozemacVersion()
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ class BugReporter @Inject constructor(
265
265
activeSessionHolder.getSafeActiveSession()?.let { session ->
266
266
userId = session.myUserId
267
267
deviceId = session.sessionParams.deviceId
268
- olmVersion = session.cryptoService().getCryptoVersion(context, true )
268
+ olmVersion = session.cryptoService().getCryptoVersion(true )
269
269
}
270
270
271
271
if (! mIsCancelled) {
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class VectorSettingsHelpAboutFragment :
96
96
97
97
// olm version
98
98
findPreference<VectorPreference >(VectorPreferences .SETTINGS_CRYPTO_VERSION_PREFERENCE_KEY )!!
99
- .summary = session.cryptoService().getCryptoVersion(requireContext(), true )
99
+ .summary = session.cryptoService().getCryptoVersion(true )
100
100
}
101
101
102
102
companion object {
You can’t perform that action at this time.
0 commit comments