Merge pull request #218 from ouchadam/bug/dendrite-infinite-login
Fix dendrite failing to fully login
This commit is contained in:
commit
f7f4c897d6
|
@ -13,7 +13,7 @@ internal data class ApiSyncResponse(
|
|||
@SerialName("account_data") val accountData: ApiAccountData? = null,
|
||||
@SerialName("rooms") val rooms: ApiSyncRooms? = null,
|
||||
@SerialName("to_device") val toDevice: ToDevice? = null,
|
||||
@SerialName("device_one_time_keys_count") val oneTimeKeysCount: Map<String, ServerKeyCount>,
|
||||
@SerialName("device_one_time_keys_count") val oneTimeKeysCount: Map<String, ServerKeyCount>? = null,
|
||||
@SerialName("next_batch") val nextBatch: SyncToken,
|
||||
@SerialName("prev_batch") val prevBatch: SyncToken? = null,
|
||||
)
|
||||
|
|
|
@ -28,7 +28,7 @@ internal class SyncSideEffects(
|
|||
notifyDevicesUpdated.notifyChanges(it, requestToken)
|
||||
}
|
||||
|
||||
oneTimeKeyProducer.onServerKeyCount(response.oneTimeKeysCount["signed_curve25519"] ?: ServerKeyCount(0))
|
||||
oneTimeKeyProducer.onServerKeyCount(response.oneTimeKeysCount?.get("signed_curve25519") ?: ServerKeyCount(0))
|
||||
|
||||
val decryptedToDeviceEvents = decryptedToDeviceEvents(response)
|
||||
val roomKeys = handleRoomKeyShares(decryptedToDeviceEvents)
|
||||
|
|
Loading…
Reference in New Issue