lib/model: Schedule pull after revert on recv-enc (#7892)

This commit is contained in:
Simon Frei 2021-08-17 09:24:10 +02:00 committed by GitHub
parent c025e76f30
commit 0fe72e6fc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -94,7 +94,14 @@ func (f *receiveEncryptedFolder) revert() error {
if iterErr != nil {
return iterErr
}
return batch.Flush()
if err := batch.Flush(); err != nil {
return err
}
// We might need to pull items if the local changes were on valid, global files.
f.SchedulePull()
return nil
}
func (f *receiveEncryptedFolder) revertHandleDirs(dirs []string, snap *db.Snapshot) {