Skip to content

Commit 1a2afe8

Browse files
authored
agent: fix JSON encoding for protocol errors to be compatible with iOS (#1475)
1 parent 9fece9c commit 1a2afe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Simplex/Messaging/Protocol.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,9 +1818,9 @@ tDecodeParseValidate THandleParams {sessionId, thVersion = v, implySessId} = \ca
18181818

18191819
$(J.deriveJSON defaultJSON ''MsgFlags)
18201820

1821-
$(J.deriveJSON (taggedObjectJSON id) ''CommandError)
1821+
$(J.deriveJSON (sumTypeJSON id) ''CommandError)
18221822

1823-
$(J.deriveJSON (taggedObjectJSON id) ''BrokerErrorType)
1823+
$(J.deriveJSON (sumTypeJSON id) ''BrokerErrorType)
18241824

18251825
$(J.deriveJSON defaultJSON ''BlockingInfo)
18261826

0 commit comments

Comments
 (0)