cache empty settings

This commit is contained in:
Aine
2022-09-06 22:02:21 +03:00
parent 17c8d06a33
commit af1b664274

View File

@@ -97,7 +97,9 @@ func (b *Bot) getRoomSettings(roomID id.RoomID) (roomSettings, error) {
// In such cases, just return a default (empty) settings object.
err = nil
}
} else {
}
if err == nil {
b.cfg.Set(roomID.String(), config)
}