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:
parent
326371c7b5
commit
887f9de81e
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue