refactor(base): Remove check for own user in notification handling
This is now done in Ruma.
Reverts commit
@@ -329,11 +329,6 @@ impl BaseClient {
}
if let Some(context) = &push_context {
- if event
- .event
- .get_field::<OwnedUserId>("sender")?
- .map_or(false, |id| id != user_id)
- {
let actions = push_rules.get_actions(&event.event, context).to_vec();
if actions.iter().any(|a| matches!(a, Action::Notify)) {
@@ -348,7 +343,6 @@ impl BaseClient {
),
);
}
- }
// TODO if there is an
// Action::SetTweak(Tweak::Highlight) we need to store
// its value with the event so a client can show if the
