mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
fix moshi number parsing for rust
This commit is contained in:
parent
43421e3eb9
commit
a110c9ee50
1 changed files with 5 additions and 1 deletions
|
@ -292,7 +292,11 @@ internal class OlmMachine @Inject constructor(
|
|||
}
|
||||
|
||||
suspend fun receiveUnencryptedVerificationEvent(roomId: String, event: Event) = withContext(coroutineDispatchers.io) {
|
||||
val adapter = moshi.adapter(Event::class.java)
|
||||
val adapter = moshi
|
||||
.newBuilder()
|
||||
.add(CheckNumberType.JSON_ADAPTER_FACTORY)
|
||||
.build()
|
||||
.adapter(Event::class.java)
|
||||
val serializedEvent = adapter.toJson(event)
|
||||
inner.receiveUnencryptedVerificationEvent(serializedEvent, roomId)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue