From b15d39eb4aedbbb4e3eb6f668947e0d57759c7de Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Thu, 18 Aug 2022 09:18:15 +0100 Subject: [PATCH] android: include default values in JSON encoding (#943) --- .../app/src/main/java/chat/simplex/app/model/SimpleXAPI.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/android/app/src/main/java/chat/simplex/app/model/SimpleXAPI.kt b/apps/android/app/src/main/java/chat/simplex/app/model/SimpleXAPI.kt index ada4d57020..138d452083 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/model/SimpleXAPI.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/model/SimpleXAPI.kt @@ -1346,6 +1346,7 @@ data class KeepAliveOpts( val json = Json { prettyPrint = true ignoreUnknownKeys = true + encodeDefaults = true } @Serializable