fix: Use correct ReadCard function in tables.go

This commit is contained in:
Grail Finder (aider)
2025-03-23 14:05:46 +03:00
parent 3e7499f71a
commit 67e540298a

View File

@@ -144,7 +144,7 @@ func makeChatTable(chatMap map[string]models.Chat) *tview.Table {
return return
} }
// Reload card from disk // Reload card from disk
newCard, err := pngmeta.ReadCardFromFile(cc.FilePath, cfg.UserRole) newCard, err := pngmeta.ReadCard(cc.FilePath, cfg.UserRole)
if err != nil { if err != nil {
logger.Error("failed to reload charcard", "path", cc.FilePath, "error", err) logger.Error("failed to reload charcard", "path", cc.FilePath, "error", err)
if err := notifyUser("error", "failed to reload card: "+cc.FilePath); err != nil { if err := notifyUser("error", "failed to reload card: "+cc.FilePath); err != nil {