mirror of
https://github.com/element-hq/element-android
synced 2024-12-22 09:14:58 +03:00
code review
This commit is contained in:
parent
fbe098f54b
commit
893e6e3962
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ internal class OlmMachine(
|
||||||
DeviceLists(deviceChanges?.changed.orEmpty(), deviceChanges?.left.orEmpty())
|
DeviceLists(deviceChanges?.changed.orEmpty(), deviceChanges?.left.orEmpty())
|
||||||
val adapter =
|
val adapter =
|
||||||
MoshiProvider.providesMoshi().adapter(ToDeviceSyncResponse::class.java)
|
MoshiProvider.providesMoshi().adapter(ToDeviceSyncResponse::class.java)
|
||||||
val events = toDevice?.let { adapter.toJson(it) } ?: "[]"
|
val events = adapter.toJson(toDevice ?: ToDeviceSyncResponse())!!
|
||||||
|
|
||||||
adapter.fromJson(inner.receiveSyncChanges(events, devices, counts)) ?: ToDeviceSyncResponse()
|
adapter.fromJson(inner.receiveSyncChanges(events, devices, counts)) ?: ToDeviceSyncResponse()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue