From 4450f51d7846f7bd8462592c4a27f812d8782a1b Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Wed, 10 Feb 2021 11:53:47 +0300 Subject: [PATCH] runCatching added to loadMembersTask execution. --- .../android/sdk/internal/crypto/DefaultCryptoService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt index 08991b2d5f..e254be74ed 100755 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt @@ -1300,7 +1300,9 @@ internal class DefaultCryptoService @Inject constructor( override fun ensureOutboundSession(roomId: String) { cryptoCoroutineScope.launch(coroutineDispatchers.crypto) { // Ensure to load all room members - loadRoomMembersTask.execute(LoadRoomMembersTask.Params(roomId)) + runCatching { + loadRoomMembersTask.execute(LoadRoomMembersTask.Params(roomId)) + } val userIds = getRoomUserIds(roomId) val alg = roomEncryptorsStore.get(roomId)