1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-11 18:20:28 +09:00

Handle empty message case

This commit is contained in:
mcrakhman 2024-07-30 23:53:38 +02:00
parent 326371c7b5
commit 887f9de81e
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -155,6 +155,14 @@ func (s *syncTreeHandler) handleMessage(ctx context.Context, msg *treechangeprot
return err
}
return s.syncClient.QueueRequest(senderId, treeId, req)
default:
if protoVersion <= secureservice.ProtoVersion {
return nil
}
req, err := s.syncClient.CreateFullSyncRequest(s.objTree, nil, nil)
if err != nil {
return err
}
return s.syncClient.QueueRequest(senderId, treeId, req)
}
return
}