mirror of
https://github.com/element-hq/element-android
synced 2024-12-21 16:55:06 +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())
|
||||
val adapter =
|
||||
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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue