From 6ac7101f4f9ad477d967537a647b06d3b6dff547 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sat, 14 Jun 2025 14:13:14 +0100 Subject: [PATCH] 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.