mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-28 03:48:37 +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