mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-23 02:12:35 +00:00
flip condition for JSON encoding to make android (tagged objects) default (#319)
This commit is contained in:
1 parent
9c4778b129
commit
c1f5f9d846
2 files changed
+5
-5
No files matched your search
@@ -98,10 +98,10 @@ enumJSON tagModifier =
|
||||
}
|
||||
|
||||
sumTypeJSON :: (String -> String) -> J.Options
|
||||
#if defined(ANDROID)
|
||||
sumTypeJSON = taggedObjectJSON
|
||||
#else
|
||||
#if defined(IOS)
|
||||
sumTypeJSON = singleFieldJSON
|
||||
#else
|
||||
sumTypeJSON = taggedObjectJSON
|
||||
#endif
|
||||
|
||||
taggedObjectJSON :: (String -> String) -> J.Options
|
||||
|
||||
Reference in new issue
Block a user