mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-20 21:28:45 +03:00
Fix / Ensure encryption set even if faield to fetch members
This commit is contained in:
parent
8b481e2294
commit
c91bc82cd9
1 changed files with 3 additions and 2 deletions
|
@ -792,10 +792,11 @@ internal class DefaultCryptoService @Inject constructor(
|
||||||
val params = LoadRoomMembersTask.Params(roomId)
|
val params = LoadRoomMembersTask.Params(roomId)
|
||||||
try {
|
try {
|
||||||
loadRoomMembersTask.execute(params)
|
loadRoomMembersTask.execute(params)
|
||||||
val userIds = getRoomUserIds(roomId)
|
|
||||||
setEncryptionInRoom(roomId, event.content?.get("algorithm")?.toString(), true, userIds)
|
|
||||||
} catch (throwable: Throwable) {
|
} catch (throwable: Throwable) {
|
||||||
Timber.e(throwable, "## onRoomEncryptionEvent ERROR FAILED TO SETUP CRYPTO ")
|
Timber.e(throwable, "## onRoomEncryptionEvent ERROR FAILED TO SETUP CRYPTO ")
|
||||||
|
} finally {
|
||||||
|
val userIds = getRoomUserIds(roomId)
|
||||||
|
setEncryptionInRoom(roomId, event.content?.get("algorithm")?.toString(), true, userIds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue