mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Add NotificationPushRuleType.pushRuleId
This commit is contained in:
@@ -21,3 +21,9 @@ protocol NotificationPushRuleType {
|
||||
var enabled: Bool { get }
|
||||
func matches(standardActions: NotificationStandardActions?) -> Bool
|
||||
}
|
||||
|
||||
extension NotificationPushRuleType {
|
||||
var pushRuleId: NotificationPushRuleId? {
|
||||
ruleId.flatMap(NotificationPushRuleId.init(rawValue:))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user