From 6ac7101f4f9ad477d967537a647b06d3b6dff547 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sat, 14 Jun 2025 14:13:14 +0100 Subject: [PATCH 1/2] agent: make decoding for short link data forward compatible (#1568) --- src/Simplex/Messaging/Agent/Protocol.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Simplex/Messaging/Agent/Protocol.hs b/src/Simplex/Messaging/Agent/Protocol.hs index 463639942..19997b6af 100644 --- a/src/Simplex/Messaging/Agent/Protocol.hs +++ b/src/Simplex/Messaging/Agent/Protocol.hs @@ -1684,13 +1684,13 @@ instance Encoding AConnLinkData where smpP = smpP >>= \case CMInvitation -> do - (vr, userData) <- smpP + (vr, userData) <- smpP <* A.takeByteString -- ignoring tail for forward compatibility with the future link data encoding pure $ ACLD SCMInvitation $ InvitationLinkData vr userData CMContact -> do (agentVRange, direct) <- smpP owners <- smpListP relays <- smpListP - userData <- smpP + userData <- smpP <* A.takeByteString -- ignoring tail for forward compatibility with the future link data encoding pure $ ACLD SCMContact ContactLinkData {agentVRange, direct, owners, relays, userData} -- | SMP queue status. From 3d62a383d5dcae6529d6d866233857182bcb4d47 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Sat, 14 Jun 2025 14:19:31 +0100 Subject: [PATCH 2/2] 6.4.0.3.1 --- simplexmq.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplexmq.cabal b/simplexmq.cabal index e1f2cdafd..e72801ad9 100644 --- a/simplexmq.cabal +++ b/simplexmq.cabal @@ -1,7 +1,7 @@ cabal-version: 1.12 name: simplexmq -version: 6.4.0.3 +version: 6.4.0.3.1 synopsis: SimpleXMQ message broker description: This package includes <./docs/Simplex-Messaging-Server.html server>, <./docs/Simplex-Messaging-Client.html client> and