Convert MXUsersDevicesMap to kotlin - Fix issue

This commit is contained in:
Benoit Marty 2019-07-03 18:01:28 +02:00
parent f789fb275d
commit 223295c2f1

View File

@ -67,7 +67,7 @@ internal class EnsureOlmSessionsForDevicesAction @Inject constructor(private val
val oneTimeKeyAlgorithm = MXKey.KEY_SIGNED_CURVE_25519_TYPE val oneTimeKeyAlgorithm = MXKey.KEY_SIGNED_CURVE_25519_TYPE


for (device in devicesWithoutSession) { for (device in devicesWithoutSession) {
usersDevicesToClaim.setObject(oneTimeKeyAlgorithm, device.userId, device.deviceId) usersDevicesToClaim.setObject(device.userId, device.deviceId, oneTimeKeyAlgorithm)
} }


// TODO: this has a race condition - if we try to send another message // TODO: this has a race condition - if we try to send another message