@aikaara/chat-sdk 0.9.3 → 0.9.4
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.
- package/dist/{MountTenant-r3JJGN72.mjs → MountTenant-B-CCyWWA.mjs} +1 -3
- package/dist/{MountTenant-BU0QBp5M.cjs → MountTenant-CLSvsaX7.cjs} +1 -1
- package/dist/cdn/aikaara-chat.iife.js +1 -1
- package/dist/headless.cjs +1 -1
- package/dist/headless.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
|
@@ -454,9 +454,7 @@ function Il(c, e, t = 15e3) {
|
|
|
454
454
|
if (!i && !s && !o) return null;
|
|
455
455
|
const l = new Date(e.createdAt).getTime();
|
|
456
456
|
for (let u = c.length - 1; u >= 0; u--) {
|
|
457
|
-
const d = c[u];
|
|
458
|
-
if (d.role !== e.role) continue;
|
|
459
|
-
const p = d.attachments && d.attachments[0], y = (d.metadata ?? {}).attributes;
|
|
457
|
+
const d = c[u], p = d.attachments && d.attachments[0], y = (d.metadata ?? {}).attributes;
|
|
460
458
|
if (!(!!p || !!(y && y.fileMessage)) || Math.abs(l - new Date(d.createdAt).getTime()) > t) continue;
|
|
461
459
|
const g = fo(d);
|
|
462
460
|
if (i && g && i === g) return d;
|