From a39a1dea1eabaa218a1444f7cabcccdcf5887680 Mon Sep 17 00:00:00 2001 From: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Date: Thu, 11 Jun 2026 17:33:22 +0200 Subject: [PATCH] Update sds/protobuf.nim Co-authored-by: Esteban C Borsani --- sds/protobuf.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sds/protobuf.nim b/sds/protobuf.nim index 86c6465..48eeb0b 100644 --- a/sds/protobuf.nim +++ b/sds/protobuf.nim @@ -139,7 +139,10 @@ proc deserializeMessage*(data: seq[byte]): Result[SdsMessage, ReliabilityError] let msg = Protobuf.decode(data, SdsMessagePB).fromPB if msg.messageId.len == 0 or msg.channelId.len == 0: return err(ReliabilityError.reDeserializationError) - for e in msg.causalHistory & msg.repairRequest: + for e in msg.causalHistory: + if e.messageId.len == 0: + return err(ReliabilityError.reDeserializationError) + for e in msg.repairRequest: if e.messageId.len == 0: return err(ReliabilityError.reDeserializationError) return ok(msg)