1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-04 17:18:51 +01:00

fix: don't run push rules for users that don't exist

This commit is contained in:
Timo Kösters 2021-08-03 10:23:20 +02:00
parent bd63797213
commit 6b06fc9707
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4

View file

@ -779,7 +779,7 @@ impl Rooms {
.room_members(&pdu.room_id)
.filter_map(|r| r.ok())
.filter(|user_id| user_id.server_name() == db.globals.server_name())
.filter(|user_id| !db.users.is_deactivated(user_id).unwrap_or(false))
.filter(|user_id| !db.users.is_deactivated(user_id).unwrap_or(true))
{
// Don't notify the user of their own events
if user == pdu.sender {