@multiplayer-app/ai-agent-react 0.1.0-beta.50 → 0.1.0-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34550,10 +34550,16 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
34550
34550
|
const B = t.store.getState(), P = et(B, R.chat), D = P.messages.findIndex((K) => K.id === R.id);
|
|
34551
34551
|
if (D >= 0) {
|
|
34552
34552
|
const K = [...P.messages];
|
|
34553
|
-
K[D] = R, h.current(R.chat, {
|
|
34553
|
+
K[D] = R, h.current(R.chat, {
|
|
34554
|
+
...P,
|
|
34555
|
+
messages: K
|
|
34556
|
+
});
|
|
34554
34557
|
return;
|
|
34555
34558
|
}
|
|
34556
|
-
h.current(R.chat, {
|
|
34559
|
+
h.current(R.chat, {
|
|
34560
|
+
...P,
|
|
34561
|
+
messages: [...P.messages, R]
|
|
34562
|
+
});
|
|
34557
34563
|
}, G = (R) => {
|
|
34558
34564
|
m.current(R);
|
|
34559
34565
|
};
|