Move account to feed sync outside of folder to feed sync since it was stripping feeds before they had a chance to get used.
This commit is contained in:
parent
f06d4f7ef9
commit
08e772cbd1
@ -146,16 +146,11 @@ extension NewsBlurAccountDelegate {
|
|||||||
|
|
||||||
// Sync the folders
|
// Sync the folders
|
||||||
for (folderName, folderRelationships) in newsBlurFolderDict {
|
for (folderName, folderRelationships) in newsBlurFolderDict {
|
||||||
let newsBlurFolderFeedIDs = folderRelationships.map { String($0.feedID) }
|
guard folderName != " " else {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Handle account-level folder
|
let newsBlurFolderFeedIDs = folderRelationships.map { String($0.feedID) }
|
||||||
if folderName == " " {
|
|
||||||
for feed in account.topLevelWebFeeds {
|
|
||||||
if !newsBlurFolderFeedIDs.contains(feed.webFeedID) {
|
|
||||||
account.removeWebFeed(feed)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
guard let folder = folderDict[folderName] else { return }
|
guard let folder = folderDict[folderName] else { return }
|
||||||
|
|
||||||
@ -182,6 +177,17 @@ extension NewsBlurAccountDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Handle the account level feeds
|
||||||
|
if let folderRelationships = newsBlurFolderDict[" "] {
|
||||||
|
let newsBlurFolderFeedIDs = folderRelationships.map { String($0.feedID) }
|
||||||
|
for feed in account.topLevelWebFeeds {
|
||||||
|
if !newsBlurFolderFeedIDs.contains(feed.webFeedID) {
|
||||||
|
account.removeWebFeed(feed)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func clearFolderRelationship(for feed: WebFeed, withFolderName folderName: String) {
|
func clearFolderRelationship(for feed: WebFeed, withFolderName folderName: String) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user