Code review fixes.

This commit is contained in:
Onuray Sahin 2021-02-08 17:39:25 +03:00 committed by Benoit Marty
parent 8b39eabc0f
commit 11dffacc48
2 changed files with 2 additions and 6 deletions

View File

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

View File

@ -1,5 +1,5 @@
/*
* Copyright 2020 The Matrix.org Foundation C.I.C.
* Copyright (c) 2021 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.