summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <dawagner@gmail.com>2015-11-17 17:17:30 -0500
committerDaniel Wagner-Hall <dawagner@gmail.com>2015-11-17 17:17:30 -0500
commitba26eb3d5d487edb90c21db7efec631b80adf24b (patch)
tree443ada28bdf0a40c2ea24a60b02e6b27ff1d5f79 /synapse/handlers/room.py
parentMerge pull request #384 from matrix-org/erikj/shorter_retries (diff)
downloadsynapse-ba26eb3d5d487edb90c21db7efec631b80adf24b.tar.xz
Allow users to forget rooms
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 3f04752581..023b4001b8 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -743,6 +743,9 @@ class RoomMemberHandler(BaseHandler):
         )
         defer.returnValue((token, public_key, key_validity_url, display_name))
 
+    def forget(self, user, room_id):
+        self.store.forget(user.to_string(), room_id)
+
 
 class RoomListHandler(BaseHandler):