@onyx-p/imlib-web 2.0.1 → 2.0.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.
package/index.esm.js CHANGED
@@ -28391,13 +28391,13 @@ class MessageCache {
28391
28391
  }
28392
28392
  }
28393
28393
  addMessages(messages, toConversation, isEnd = undefined) {
28394
- if (!messages || messages.length === 0) {
28395
- return;
28396
- }
28397
28394
  const dialogId = getFullDialogId(toConversation);
28398
- if (isEnd !== undefined) {
28395
+ if (isDef(isEnd)) {
28399
28396
  this.loadedEndMap.set(dialogId, isEnd);
28400
28397
  }
28398
+ if (!messages || messages.length === 0) {
28399
+ return;
28400
+ }
28401
28401
  if (!this.messageCache.has(dialogId)) {
28402
28402
  this.messageCache.set(dialogId, []);
28403
28403
  }
package/index.umd.js CHANGED
@@ -28397,13 +28397,13 @@
28397
28397
  }
28398
28398
  }
28399
28399
  addMessages(messages, toConversation, isEnd = undefined) {
28400
- if (!messages || messages.length === 0) {
28401
- return;
28402
- }
28403
28400
  const dialogId = getFullDialogId(toConversation);
28404
- if (isEnd !== undefined) {
28401
+ if (isDef(isEnd)) {
28405
28402
  this.loadedEndMap.set(dialogId, isEnd);
28406
28403
  }
28404
+ if (!messages || messages.length === 0) {
28405
+ return;
28406
+ }
28407
28407
  if (!this.messageCache.has(dialogId)) {
28408
28408
  this.messageCache.set(dialogId, []);
28409
28409
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "types/index.d.ts",