summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-02-07 17:27:08 +0000
committerRichard van der Hoff <richard@matrix.org>2018-02-09 13:07:41 +0000
commit671540dccf3996620ffe65705904fb911e21fb68 (patch)
tree14ce8ff67f8418c93914b52af739bfda3ba1f7ad /synapse/handlers
parentBetter logging when pushes fail (diff)
downloadsynapse-671540dccf3996620ffe65705904fb911e21fb68.tar.xz
rename delete_old_state -> purge_history
(beacause it deletes more than state)
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 21f1717dd2..1c7860bb05 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -72,7 +72,7 @@ class MessageHandler(BaseHandler):
         depth = event.depth
 
         with (yield self.pagination_lock.write(room_id)):
-            yield self.store.delete_old_state(room_id, depth)
+            yield self.store.purge_history(room_id, depth)
 
     @defer.inlineCallbacks
     def get_messages(self, requester, room_id=None, pagin_config=None,