Skip to content

Commit

Permalink
Merge pull request matrix-org#1799 from matrix-org/johannes/bail-on-u…
Browse files Browse the repository at this point in the history
…nknown-condition-types

Ignore push rules with unknown condition kinds
  • Loading branch information
pixlwave authored Jun 21, 2023
2 parents 822095f + 800ba88 commit 67f6539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions MatrixSDK/NotificationCenter/MXNotificationCenter.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ - (MXPushRule *)ruleMatchingEvent:(MXEvent *)event roomState:(MXRoomState*)roomS
{
MXLogDebug(@"[MXNotificationCenter] Warning: There is no MXPushRuleConditionChecker to check condition of kind: %@", condition.kind);
conditionsOk = NO;
break; // Don't go further as we cannot guarantee that this rule matches
}
}
break;
Expand Down
1 change: 1 addition & 0 deletions changelog.d/7601.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ignore push rules with unknown condition kinds

0 comments on commit 67f6539

Please sign in to comment.