Convert removeFeed to async await.

This commit is contained in:
Brent Simmons
2024-03-28 09:28:16 -07:00
parent c5441bddc3
commit 4a4ece71f9
11 changed files with 119 additions and 44 deletions

View File

@@ -51,11 +51,12 @@ import Core
}
@MainActor func deleteElement(_ element:ScriptingObject) {
if let scriptableFeed = element as? ScriptableFeed {
BatchUpdate.shared.perform {
folder.account?.removeFeed(scriptableFeed.feed, from: folder) { result in }
}
}
// TODO: fix this
// if let scriptableFeed = element as? ScriptableFeed {
// BatchUpdate.shared.perform {
// folder.account?.removeFeed(scriptableFeed.feed, from: folder) { result in }
// }
// }
}
// MARK: --- handle NSCreateCommand ---