aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-04-19 15:57:49 +0300
committerTulir Asokan <tulir@maunium.net>2020-04-19 15:57:49 +0300
commitf668faa8940ba02e796e016ff27f2e4620b49a29 (patch)
tree020e48d747e576956c3a7581675bfda854922d21 /config
parent5ee6aa72dbb2cc4b437624f7e2d5821234c2fc7c (diff)
Process different rooms in sync responses in goroutines
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()
+}