Fix unmarshallSendError bug

This commit is contained in:
mcrakhman 2023-05-07 20:27:30 +02:00
parent 7394b4bd67
commit fc9644e509
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

View File

@ -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)
}