fix: Use correct ReadCard function in tables.go
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user