summary refs log tree commit diff
path: root/synapse/config/room.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/config/room.py')
-rw-r--r--synapse/config/room.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/config/room.py b/synapse/config/room.py
index 4a7ac00540..b6696cd129 100644
--- a/synapse/config/room.py
+++ b/synapse/config/room.py
@@ -75,3 +75,7 @@ class RoomConfig(Config):
                         % preset
                     )
                 # We validate the actual overrides when we try to apply them.
+
+        # When enabled, users will forget rooms when they leave them, either via a
+        # leave, kick or ban.
+        self.forget_on_leave = config.get("forget_rooms_on_leave", False)