diff options
Diffstat (limited to 'lib/model/model.go')
-rw-r--r-- | lib/model/model.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/model/model.go b/lib/model/model.go index c1b3ddaa81..28a3a5469e 100644 --- a/lib/model/model.go +++ b/lib/model/model.go @@ -1053,7 +1053,6 @@ func (m *model) RemoteNeedFolderFiles(folder string, device protocol.DeviceID, p func (m *model) LocalChangedFolderFiles(folder string, page, perpage int) ([]db.FileInfoTruncated, error) { m.fmut.RLock() rf, ok := m.folderFiles[folder] - cfg := m.folderCfgs[folder] m.fmut.RUnlock() if !ok { @@ -1071,11 +1070,10 @@ func (m *model) LocalChangedFolderFiles(folder string, page, perpage int) ([]db. } p := newPager(page, perpage) - recvEnc := cfg.Type == config.FolderTypeReceiveEncrypted files := make([]db.FileInfoTruncated, 0, perpage) snap.WithHaveTruncated(protocol.LocalDeviceID, func(f protocol.FileIntf) bool { - if !f.IsReceiveOnlyChanged() || (recvEnc && f.IsDeleted()) { + if !f.IsReceiveOnlyChanged() { return true } if p.skip() { |