agent: make decoding for short link data forward compatible (#1568)

This commit is contained in:
Evgeny authored and GitHub committed 2025-06-14 14:13:14 +01:00
1 parent f44ea0a6d8
commit 6ac7101f4f
1 file changed
+2 -2
+2 -2
View File
@@ -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.