lib/model: Also send folder summary from sync-preparing (ref #6028) (#6202)

This commit is contained in:
Simon Frei 2019-11-29 08:30:17 +01:00 committed by Jakob Borg
parent f9c380d45b
commit 606154b183
1 changed files with 4 additions and 1 deletions

View File

@ -198,7 +198,10 @@ func (c *folderSummaryService) processUpdate(ev events.Event) {
case events.StateChanged:
data := ev.Data.(map[string]interface{})
if !(data["to"].(string) == "idle" && data["from"].(string) == "syncing") {
if data["to"].(string) != "idle" {
return
}
if from := data["from"].(string); from != "syncing" && from != "sync-preparing" {
return
}