@onyx-p/imlib-web 2.3.5 → 2.3.6

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
@@ -29222,11 +29222,7 @@ class IMClient extends EventEmitter {
29222
29222
  sendFileMessage = sendFileMessage$1;
29223
29223
  sendSightMessage = sendSightMessage$1;
29224
29224
  async recallMsg(conversation, options) {
29225
- const result = await sendRecallMessage(conversation, options);
29226
- if (result.code === ErrorCode.SUCCESS) {
29227
- MessageCache$1.get()?.removeMessagesByUId([options.messageUId]);
29228
- }
29229
- return result;
29225
+ return await sendRecallMessage(conversation, options);
29230
29226
  }
29231
29227
  async getRemoteHistoryMessages(conversation, options) {
29232
29228
  const timestamp = options.timestamp ?? '0';
package/index.umd.js CHANGED
@@ -29228,11 +29228,7 @@
29228
29228
  sendFileMessage = sendFileMessage$1;
29229
29229
  sendSightMessage = sendSightMessage$1;
29230
29230
  async recallMsg(conversation, options) {
29231
- const result = await sendRecallMessage(conversation, options);
29232
- if (result.code === exports.ErrorCode.SUCCESS) {
29233
- MessageCache$1.get()?.removeMessagesByUId([options.messageUId]);
29234
- }
29235
- return result;
29231
+ return await sendRecallMessage(conversation, options);
29236
29232
  }
29237
29233
  async getRemoteHistoryMessages(conversation, options) {
29238
29234
  const timestamp = options.timestamp ?? '0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "types/index.d.ts",