From 1a2afe8bfdfeb0709547dd277ede8a00962254dd Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 6 Mar 2025 08:02:27 +0000 Subject: [PATCH] agent: fix JSON encoding for protocol errors to be compatible with iOS (#1475) --- src/Simplex/Messaging/Protocol.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Simplex/Messaging/Protocol.hs b/src/Simplex/Messaging/Protocol.hs index 679f077b7..122246868 100644 --- a/src/Simplex/Messaging/Protocol.hs +++ b/src/Simplex/Messaging/Protocol.hs @@ -1818,9 +1818,9 @@ tDecodeParseValidate THandleParams {sessionId, thVersion = v, implySessId} = \ca $(J.deriveJSON defaultJSON ''MsgFlags) -$(J.deriveJSON (taggedObjectJSON id) ''CommandError) +$(J.deriveJSON (sumTypeJSON id) ''CommandError) -$(J.deriveJSON (taggedObjectJSON id) ''BrokerErrorType) +$(J.deriveJSON (sumTypeJSON id) ''BrokerErrorType) $(J.deriveJSON defaultJSON ''BlockingInfo)