aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index d85e243..37058cd 100644
--- a/config/config.go
+++ b/config/config.go
@@ -277,3 +277,11 @@ func (config *Config) LoadRoom(_ id.RoomID) *mautrix.Room {
func (config *Config) GetRoom(roomID id.RoomID) *rooms.Room {
return config.Rooms.GetOrCreate(roomID)
}
+
+func (config *Config) DisableUnloading() {
+ config.Rooms.DisableUnloading()
+}
+
+func (config *Config) EnableUnloading() {
+ config.Rooms.EnableUnloading()
+}