From 527236b17b04cbff21321d29c180924ccdb2e7a3 Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Sun, 7 May 2023 20:27:30 +0200 Subject: [PATCH] Fix unmarshallSendError bug --- commonspace/objectsync/objectsync.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commonspace/objectsync/objectsync.go b/commonspace/objectsync/objectsync.go index c70db5fa..6f6c8810 100644 --- a/commonspace/objectsync/objectsync.go +++ b/commonspace/objectsync/objectsync.go @@ -110,7 +110,8 @@ func (s *objectSync) handleMessage(ctx context.Context, senderId string, msg *sp obj, err := s.objectGetter.GetObject(ctx, msg.ObjectId) if err != nil { log.DebugCtx(ctx, "failed to get object") - return s.unmarshallSendError(ctx, msg, err, msg.ObjectId, senderId) + // TODO: write tests for object sync https://linear.app/anytype/issue/GO-1299/write-tests-for-commonspaceobjectsync + return s.unmarshallSendError(ctx, msg, err, senderId, msg.ObjectId) } return obj.HandleMessage(ctx, senderId, msg) }