fix: ios add labels not working in subscription settings

* creating wrong filter in the rule
This commit is contained in:
Hongbo Wu
2024-02-01 11:09:20 +08:00
parent 7289480ca5
commit 177a3c3f90

View File

@ -406,14 +406,14 @@ struct SubscriptionSettingsView: View {
}
var ruleName: String {
if let url = subscription.url, subscription.type == .newsletter {
if let url = subscription.url, subscription.type == .feed {
return "system.autoLabel.(\(url))"
}
return "system.autoLabel.(\(subscription.name))"
}
var ruleFilter: String {
if let url = subscription.url, subscription.type == .newsletter {
if let url = subscription.url, subscription.type == .feed {
return "rss:\"\(url)\""
}
return "subscription:\"\(subscription.name)\""