@onyx-p/imlib-web 2.1.3 → 2.1.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/index.esm.js CHANGED
@@ -19782,6 +19782,7 @@ class ConversationStore {
19782
19782
  this.localStore.set(key, local);
19783
19783
  }
19784
19784
  set(conOpt, conversation) {
19785
+ debugger;
19785
19786
  const key = this.getStoreKey(conOpt);
19786
19787
  const local = this.localStore.get(key) || {};
19787
19788
  for (const key of getKeys(conversation)) {
@@ -29255,7 +29256,6 @@ class IMClient extends EventEmitter {
29255
29256
  };
29256
29257
  }
29257
29258
  async deleteRemoteMessage(conversation, list) {
29258
- debugger;
29259
29259
  const result = await deleteMessages$1(getFullDialogId(conversation), list.map(e => e.messageUId)).then(result => result.code);
29260
29260
  if (result === ErrorCode.SUCCESS) {
29261
29261
  const latestMessage = await MessageCache$1.get()?.getLatestMessage(conversation);
@@ -29300,9 +29300,7 @@ class IMClient extends EventEmitter {
29300
29300
  conversationType: conversationObj.conversationType,
29301
29301
  targetId: conversationObj.targetId
29302
29302
  };
29303
- if (!conversationObj.latestMessage) {
29304
- conversationObj.latestMessage = await MessageCache$1.get()?.getLatestMessage(conOpt);
29305
- }
29303
+ conversationObj.latestMessage = await MessageCache$1.get()?.getLatestMessage(conOpt);
29306
29304
  ConversationManager$1.get().addLocalConversation(conversationObj);
29307
29305
  const localConversation = ConversationManager$1.get().get(conOpt);
29308
29306
  Object.assign(conversationObj, localConversation);
package/index.umd.js CHANGED
@@ -19788,6 +19788,7 @@
19788
19788
  this.localStore.set(key, local);
19789
19789
  }
19790
19790
  set(conOpt, conversation) {
19791
+ debugger;
19791
19792
  const key = this.getStoreKey(conOpt);
19792
19793
  const local = this.localStore.get(key) || {};
19793
19794
  for (const key of getKeys(conversation)) {
@@ -29261,7 +29262,6 @@
29261
29262
  };
29262
29263
  }
29263
29264
  async deleteRemoteMessage(conversation, list) {
29264
- debugger;
29265
29265
  const result = await deleteMessages$1(getFullDialogId(conversation), list.map(e => e.messageUId)).then(result => result.code);
29266
29266
  if (result === exports.ErrorCode.SUCCESS) {
29267
29267
  const latestMessage = await MessageCache$1.get()?.getLatestMessage(conversation);
@@ -29306,9 +29306,7 @@
29306
29306
  conversationType: conversationObj.conversationType,
29307
29307
  targetId: conversationObj.targetId
29308
29308
  };
29309
- if (!conversationObj.latestMessage) {
29310
- conversationObj.latestMessage = await MessageCache$1.get()?.getLatestMessage(conOpt);
29311
- }
29309
+ conversationObj.latestMessage = await MessageCache$1.get()?.getLatestMessage(conOpt);
29312
29310
  ConversationManager$1.get().addLocalConversation(conversationObj);
29313
29311
  const localConversation = ConversationManager$1.get().get(conOpt);
29314
29312
  Object.assign(conversationObj, localConversation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "types/index.d.ts",