mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 07:12:28 -04:00
Rename deletions to redactions
This commit is contained in:
parent
7d9a84a445
commit
70899d3ab2
16 changed files with 77 additions and 74 deletions
|
@ -183,18 +183,18 @@ class RoomMemberStore(SQLBaseStore):
|
|||
|
||||
def _get_members_query_txn(self, txn, where_clause, where_values):
|
||||
del_sql = (
|
||||
"SELECT event_id FROM deletions WHERE deletes = e.event_id"
|
||||
"SELECT event_id FROM redactions WHERE redacts = e.event_id"
|
||||
)
|
||||
|
||||
sql = (
|
||||
"SELECT e.*, (%(deleted)s) AS deleted FROM events as e "
|
||||
"SELECT e.*, (%(redacted)s) AS redacted FROM events as e "
|
||||
"INNER JOIN room_memberships as m "
|
||||
"ON e.event_id = m.event_id "
|
||||
"INNER JOIN current_state_events as c "
|
||||
"ON m.event_id = c.event_id "
|
||||
"WHERE %(where)s "
|
||||
) % {
|
||||
"deleted": del_sql,
|
||||
"redacted": del_sql,
|
||||
"where": where_clause,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue