mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
lib/model: Fix indexhandling for new folders paused on remote (#7747)
This commit is contained in:
parent
1e212a8dc6
commit
b1e0e7b923
@ -1306,7 +1306,9 @@ func (m *model) ccHandleFolders(folders []protocol.Folder, deviceCfg config.Devi
|
|||||||
if err := m.db.AddOrUpdatePendingFolder(folder.ID, of, deviceID); err != nil {
|
if err := m.db.AddOrUpdatePendingFolder(folder.ID, of, deviceID); err != nil {
|
||||||
l.Warnf("Failed to persist pending folder entry to database: %v", err)
|
l.Warnf("Failed to persist pending folder entry to database: %v", err)
|
||||||
}
|
}
|
||||||
indexHandlers.AddIndexInfo(folder.ID, ccDeviceInfos[folder.ID])
|
if !folder.Paused {
|
||||||
|
indexHandlers.AddIndexInfo(folder.ID, ccDeviceInfos[folder.ID])
|
||||||
|
}
|
||||||
updatedPending = append(updatedPending, updatedPendingFolder{
|
updatedPending = append(updatedPending, updatedPendingFolder{
|
||||||
FolderID: folder.ID,
|
FolderID: folder.ID,
|
||||||
FolderLabel: folder.Label,
|
FolderLabel: folder.Label,
|
||||||
|
Loading…
Reference in New Issue
Block a user