From 606154b18386d8fc41a136b0b1704fe5915fe8ce Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Fri, 29 Nov 2019 08:30:17 +0100 Subject: [PATCH] lib/model: Also send folder summary from sync-preparing (ref #6028) (#6202) --- lib/model/folder_summary.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/model/folder_summary.go b/lib/model/folder_summary.go index 78addb555..0ea0c8c70 100644 --- a/lib/model/folder_summary.go +++ b/lib/model/folder_summary.go @@ -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 }