Ignore deleted collections on first sync

This commit is contained in:
Neeraj Gupta 2023-09-25 01:52:03 +05:30
parent a800ce745a
commit 47fbe0140b

View file

@ -26,6 +26,9 @@ func (c *ClICtrl) syncRemoteCollections(ctx context.Context, info model.Account)
}
maxUpdated := lastSyncTime
for _, collection := range collections {
if lastSyncTime == 0 && collection.IsDeleted {
continue
}
album, err2 := c.mapCollectionToAlbum(ctx, collection)
if err2 != nil {
return err2