room and user account data encryption

This commit is contained in:
Aine
2022-10-02 20:15:46 +03:00
parent 8c2a383421
commit f3c5c47e76
8 changed files with 21 additions and 18 deletions

View File

@@ -68,8 +68,7 @@ func (b *Bot) initBotUsers() ([]string, error) {
}
func (b *Bot) getBotSettings() botSettings {
config := botSettings{}
err := b.lp.GetAccountData(acBotSettingsKey, &config)
config, err := b.lp.GetAccountData(acBotSettingsKey)
if err != nil {
b.log.Error("cannot get bot settings: %v", utils.UnwrapError(err))
}