Improve NotificationPushRuleType protocol

This commit is contained in:
Alfonso Grillo
2023-02-02 15:33:20 +01:00
parent ddc268b01e
commit 11c3a1d880
5 changed files with 11 additions and 10 deletions
@@ -41,6 +41,10 @@ extension MXPushRule: NotificationPushRuleType {
return false
}
var ruleActions: NotificationActions? {
.init(notify: notify, highlight: highlight, sound: sound)
}
private func getAction(actionType: MXPushRuleActionType, tweakType: String? = nil) -> MXPushRuleAction? {
guard let actions = actions as? [MXPushRuleAction] else {
return nil