0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-23 20:38:20 +02:00

modules/m_room_redaction: Query for sender match rather than event hostpart.

This commit is contained in:
Jason Volk 2019-08-31 00:23:45 -07:00
parent 52fd0d1b2e
commit 557c8a3c86

View file

@ -104,7 +104,7 @@ ircd::m::auth_room_redaction(const m::event &event,
}
};
if(m::query(std::nothrow, redact_target_idx, "redacts", sender_domain_match))
if(m::query(std::nothrow, redact_target_idx, "sender", sender_domain_match))
{
data.allow = true;
return;