runCatching added to loadMembersTask execution.

This commit is contained in:
Onuray Sahin 2021-02-10 11:53:47 +03:00 committed by Benoit Marty
parent fae484cb95
commit 4450f51d78
1 changed files with 3 additions and 1 deletions

View File

@ -1300,7 +1300,9 @@ internal class DefaultCryptoService @Inject constructor(
override fun ensureOutboundSession(roomId: String) { override fun ensureOutboundSession(roomId: String) {
cryptoCoroutineScope.launch(coroutineDispatchers.crypto) { cryptoCoroutineScope.launch(coroutineDispatchers.crypto) {
// Ensure to load all room members // Ensure to load all room members
runCatching {
loadRoomMembersTask.execute(LoadRoomMembersTask.Params(roomId)) loadRoomMembersTask.execute(LoadRoomMembersTask.Params(roomId))
}
val userIds = getRoomUserIds(roomId) val userIds = getRoomUserIds(roomId)
val alg = roomEncryptorsStore.get(roomId) val alg = roomEncryptorsStore.get(roomId)