Feat: rename chat

This commit is contained in:
Grail Finder
2024-11-24 17:39:52 +03:00
parent 6625a8103b
commit 5dfb558476
6 changed files with 327 additions and 249 deletions

View File

@@ -37,6 +37,7 @@ func updateStorageChat(name string, msgs []models.MessagesStory) error {
return err
}
chat.UpdatedAt = time.Now()
// if new chat will create id
_, err = store.UpsertChat(chat)
return err
}