Add purge_history API

This commit is contained in:
Erik Johnston 2016-07-05 10:28:51 +01:00
parent a67bf0b074
commit 2d21d43c34
4 changed files with 38 additions and 1 deletions

View file

@ -1281,6 +1281,12 @@ class EventsStore(SQLBaseStore):
)
return self.runInteraction("get_all_new_events", get_all_new_events_txn)
def delete_old_state(self, room_id, topological_ordering):
return self.runInteraction(
"delete_old_state",
self._delete_old_state_txn, room_id, topological_ordering
)
def _delete_old_state_txn(self, txn, room_id, topological_ordering):
"""Deletes old room state
"""