log when it cannot get room settings

This commit is contained in:
Aine 2023-12-19 12:40:13 +02:00
parent 6d12a61b2a
commit fe17195bc1
No known key found for this signature in database
GPG key ID: 34969C908CCA2804

View file

@ -50,6 +50,9 @@ func (m *Manager) SetBot(cfg Bot) error {
// GetRoom config
func (m *Manager) GetRoom(roomID id.RoomID) (Room, error) {
config, err := m.lp.GetRoomAccountData(roomID, acRoomKey)
if err != nil {
m.log.Warn().Err(err).Str("room_id", roomID.String()).Msg("cannot get room settings")
}
if config == nil {
config = make(Room, 0)
}