akpm-knowledge-base-chat 2.1.1 → 2.1.2

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.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +2 -2
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 2.1.1 */
1
+ /* Version: 2.1.2 */
2
2
  var ru = Object.defineProperty;
3
3
  var Ro = (t) => {
4
4
  throw TypeError(t);
@@ -14477,7 +14477,7 @@ function tx(t) {
14477
14477
  const m = new on(/* @__PURE__ */ (/* @__PURE__ */ new Date()).getTime(), !0, h, h, v);
14478
14478
  m.pending = !0, _(e, [...p(e), m], !0);
14479
14479
  let k = t.getActChat();
14480
- if (p(e).length == 2) {
14480
+ if (!(k != null && k._id)) {
14481
14481
  const y = await er(() => We.newChat(k == null ? void 0 : k.state));
14482
14482
  y.messages = p(e), t.setActChat(y), k = y, t.setChats([y, ...t.getChats()]);
14483
14483
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "akpm-knowledge-base-chat",
3
3
  "private": false,
4
- "version": "2.1.1",
4
+ "version": "2.1.2",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "CDN"