fix: display correct author for user chat messages
Previously, all chat messages in the 'chat' tab were showing with AI account info regardless of the actual author. This fix ensures the author information from the record is used, only falling back to AI profile when no author is present. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1213,8 +1213,8 @@ function App() {
|
|||||||
|
|
||||||
// Extract content based on format
|
// Extract content based on format
|
||||||
const contentText = isNewFormat ? value.text : (value.content || value.body || '');
|
const contentText = isNewFormat ? value.text : (value.content || value.body || '');
|
||||||
// For AI comments, always use the loaded AI profile instead of record.value.author
|
// Use the author from the record if available, otherwise fall back to AI profile
|
||||||
const authorInfo = aiProfile;
|
const authorInfo = value.author || aiProfile;
|
||||||
const postInfo = isNewFormat ? value.post : null;
|
const postInfo = isNewFormat ? value.post : null;
|
||||||
const contentType = value.type || 'unknown';
|
const contentType = value.type || 'unknown';
|
||||||
const createdAt = value.createdAt || value.generated_at || '';
|
const createdAt = value.createdAt || value.generated_at || '';
|
||||||
|
Reference in New Issue
Block a user