@@ -71,7 +71,7 @@ export function useChat() {
title: c.Title || "Nova conversa",
createdAt: new Date(c.CreatedAt).getTime(),
updatedAt: new Date(c.UpdatedAt).getTime(),
- messageCount: 0
+ messageCount: Number(c.MessageCount ?? 0)
};
}