Merge pull request #3475 from omnivore-app/fix/ios-subscription-add-label

fix: ios add labels not working in subscription settings
This commit is contained in:
Jackson Harper 2024-02-01 11:31:49 +08:00 committed by GitHub
commit a7371fe7a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)\""