fix(chat): attribute shared chat messages to their author, not the viewer (#28274)

This commit is contained in:
G30
2026-08-10 21:40:54 -06:00
committed by GitHub
parent 8edab5020e
commit a3e5d0b362
4 changed files with 29 additions and 3 deletions
+2 -1
View File
@@ -23,6 +23,7 @@
export let history;
export let onNodeClick;
export let chatUser = null;
type LayoutDirection = 'vertical' | 'horizontal';
type PositionMapEntry = {
@@ -99,7 +100,7 @@
id: pos.id,
type: 'custom',
data: {
user: $user,
user: chatUser ?? $user,
message: history.messages[id],
model: $models.find((model) => model.id === history.messages[id].model)
},