mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-10 08:53:00 -04:00
notification client(bugfix): don't filter out the notification if we couldn't compute push actions with /context
This is in line with what the other method using sliding sync does. This wasn't tested before, because this required `filter_by_push_rules()` to be enabled in the notification client; now that it's the default, the test revealed the bug, and so it could be fixed.
This commit is contained in:
@@ -494,12 +494,10 @@ impl NotificationClient {
|
||||
timeline_event = decrypted_event;
|
||||
}
|
||||
|
||||
if !timeline_event
|
||||
.push_actions
|
||||
.as_ref()
|
||||
.is_some_and(|actions| actions.iter().any(|a| a.should_notify()))
|
||||
{
|
||||
return Ok(None);
|
||||
if let Some(actions) = timeline_event.push_actions.as_ref() {
|
||||
if !actions.iter().any(|a| a.should_notify()) {
|
||||
return Ok(None);
|
||||
}
|
||||
}
|
||||
|
||||
Ok(Some(
|
||||
|
||||
Reference in New Issue
Block a user