Skip to content

Commit

Permalink
Fixes #7636 - Sound stopped working on push notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Aug 22, 2023
1 parent 42a57e0 commit b4d682f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions MatrixSDK/Background/MXBackgroundPushRulesManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ import Foundation
}
}

flatRules = tmpRules
// vector-im/element-ios/issues/7636
// Intentionally disable new backend push rules as they're not handle properly and break notification sounds
flatRules = tmpRules.filter { $0.ruleId != ".m.rule.is_user_mention" && $0.ruleId != ".m.rule.is_room_mention" }
}
}
private var flatRules: [MXPushRule] = []
Expand Down Expand Up @@ -129,7 +131,9 @@ import Foundation
var conditionsOk: Bool = true
var runEquivalent: Bool = false

guard let kind = MXPushRuleKind(identifier: rule.kind) else { continue }
guard let kind = MXPushRuleKind(identifier: rule.kind) else {
continue
}

switch kind {
case .override, .underride:
Expand Down

0 comments on commit b4d682f

Please sign in to comment.