mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 06:28:45 +03:00
crypto: Add some TODOs about locking
This commit is contained in:
parent
10c7f5b989
commit
dc8711be30
1 changed files with 3 additions and 0 deletions
|
@ -694,6 +694,7 @@ internal class DefaultCryptoService @Inject constructor(
|
|||
}
|
||||
|
||||
private suspend fun preshareGroupSession(roomId: String, roomMembers: List<String>) {
|
||||
// TODO this needs to be locked per room
|
||||
val request = olmMachine!!.getMissingSessions(roomMembers)
|
||||
|
||||
if (request != null) {
|
||||
|
@ -772,6 +773,7 @@ internal class DefaultCryptoService @Inject constructor(
|
|||
}
|
||||
|
||||
private suspend fun claimKeys(request: Request.KeysClaim) {
|
||||
// TODO this needs to be locked per call
|
||||
val claimParams = ClaimOneTimeKeysForUsersDeviceTask.Params(request.oneTimeKeys)
|
||||
val response = oneTimeKeysForUsersDeviceTask.execute(claimParams)
|
||||
val adapter = MoshiProvider
|
||||
|
@ -783,6 +785,7 @@ internal class DefaultCryptoService @Inject constructor(
|
|||
}
|
||||
|
||||
private suspend fun sendOutgoingRequests() {
|
||||
// TODO this needs to be locked per call
|
||||
// TODO these requests should be sent out in parallel
|
||||
for (outgoingRequest in olmMachine!!.outgoingRequests()) {
|
||||
when (outgoingRequest) {
|
||||
|
|
Loading…
Reference in a new issue