Skip to content

Commit

Permalink
fix(sdk): Fix regression with push rules being applied to the own use…
Browse files Browse the repository at this point in the history
…r_id only instead of all but the own user_id

Merge pull request #664 from JCWasmx86/ignore_notification
  • Loading branch information
gnunicorn authored May 11, 2022
2 parents 7088ff8 + 3f36528 commit 5570181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-base/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ impl BaseClient {
if event
.event
.get_field::<OwnedUserId>("sender")?
.map_or(false, |id| id == user_id)
.map_or(false, |id| id != user_id)
{
let actions = push_rules.get_actions(&event.event, context).to_vec();

Expand Down

0 comments on commit 5570181

Please sign in to comment.