mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-12 02:54:21 -05:00
Fix purge room API
This commit is contained in:
parent
cd581338cf
commit
8f5bbdb987
@ -1829,8 +1829,10 @@ class EventsStore(
|
|||||||
txn.execute(
|
txn.execute(
|
||||||
"""
|
"""
|
||||||
DELETE FROM state_groups_state
|
DELETE FROM state_groups_state
|
||||||
INNER JOIN state_groups USING (event_id)
|
WHERE state_group IN (
|
||||||
WHEREE state_groups.room_id = ?
|
SELECT state_group FROM state_groups
|
||||||
|
WHERE room_id = ?
|
||||||
|
)
|
||||||
""",
|
""",
|
||||||
(room_id,),
|
(room_id,),
|
||||||
)
|
)
|
||||||
@ -1841,8 +1843,9 @@ class EventsStore(
|
|||||||
txn.execute(
|
txn.execute(
|
||||||
"""
|
"""
|
||||||
DELETE FROM state_group_edges
|
DELETE FROM state_group_edges
|
||||||
INNER JOIN state_groups USING (event_id)
|
WHERE state_group IN (
|
||||||
WHEREE state_groups.room_id = ?
|
SELECT state_group FROM state_groups
|
||||||
|
WHERE room_id = ?
|
||||||
)
|
)
|
||||||
""",
|
""",
|
||||||
(room_id,),
|
(room_id,),
|
||||||
@ -1853,7 +1856,7 @@ class EventsStore(
|
|||||||
|
|
||||||
txn.execute(
|
txn.execute(
|
||||||
"""
|
"""
|
||||||
DELETE FROM state_groups WHEREE room_id = ?
|
DELETE FROM state_groups WHERE room_id = ?
|
||||||
""",
|
""",
|
||||||
(room_id,),
|
(room_id,),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user