File tree Expand file tree Collapse file tree
src/main/java/com/couchbase/lite/replicator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -590,12 +590,12 @@ private boolean uploadMultipartRevision(final RevisionInternal revision) {
590590 Map <String , Object > body = revision .getProperties ();
591591 Map <String , Object > attachments = (Map <String , Object >) body .get ("_attachments" );
592592
593+ boolean attachmentsFollow = false ;
593594 for (String attachmentKey : attachments .keySet ()) {
594595 Map <String , Object > attachment = (Map <String , Object >) attachments .get (attachmentKey );
595- if (!attachment .containsKey ("follows" )) {
596- return false ;
597- }
596+ if (attachment .containsKey ("follows" )) attachmentsFollow = true ;
598597 }
598+ if (!attachmentsFollow ) return false ;
599599
600600 Log .d (TAG , "Uploading multipart request. Revision: %s" , revision );
601601 addToChangesCount (1 );
You can’t perform that action at this time.
0 commit comments