@onyx-p/imlib-web 2.5.7 → 2.5.9

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
@@ -18307,7 +18307,7 @@ const SendPrivateChatReadAckReq = $root$2.SendPrivateChatReadAckReq = (() => {
18307
18307
  };
18308
18308
  return SendPrivateChatReadAckReq;
18309
18309
  })();
18310
- $root$2.ReplyPrivateChatMessageReq = (() => {
18310
+ const ReplyPrivateChatMessageReq = $root$2.ReplyPrivateChatMessageReq = (() => {
18311
18311
  /**
18312
18312
  * Properties of a ReplyPrivateChatMessageReq.
18313
18313
  * @exports IReplyPrivateChatMessageReq
@@ -18622,7 +18622,7 @@ $root$2.ReplyPrivateChatMessageReq = (() => {
18622
18622
  };
18623
18623
  return ReplyPrivateChatMessageReq;
18624
18624
  })();
18625
- $root$2.ReplyPrivateChatMessageResp = (() => {
18625
+ const ReplyPrivateChatMessageResp = $root$2.ReplyPrivateChatMessageResp = (() => {
18626
18626
  /**
18627
18627
  * Properties of a ReplyPrivateChatMessageResp.
18628
18628
  * @exports IReplyPrivateChatMessageResp
@@ -20484,8 +20484,8 @@ const sendPrivateChatMessage = params => {
20484
20484
  });
20485
20485
  };
20486
20486
  const sendQuotePrivateChatMessage = params => webSocketServer.send(CmdIds$1.SendQuotePrivateChatMessage, params, {
20487
- encoder: SendPrivateChatMessageReq,
20488
- decoder: SendPrivateChatMessageResp
20487
+ encoder: ReplyPrivateChatMessageReq,
20488
+ decoder: ReplyPrivateChatMessageResp
20489
20489
  });
20490
20490
  const sendGroupChatMessage = params => webSocketServer.send(CmdIds$1.SendGroupChatMessage, params, {
20491
20491
  encoder: SendGroupChatMessageReq,
@@ -30362,7 +30362,10 @@ async function createSendFunction(fileType, conversation, msgBody, hooks, sendOp
30362
30362
  }
30363
30363
  }
30364
30364
  const sendQuoteReplyMessage$1 = async (message, quoteReply, sendOptions) => {
30365
- const checkResult = await beforeSend(quoteReply, message, quoteReply, sendOptions);
30365
+ const checkResult = await beforeSend({
30366
+ conversationType: quoteReply.conversationType,
30367
+ targetId: quoteReply.targetId
30368
+ }, message, quoteReply, sendOptions);
30366
30369
  if (checkResult.code !== ErrorCode.SUCCESS || !checkResult.message || !checkResult.sentArgs) {
30367
30370
  return {
30368
30371
  code: checkResult.code
package/index.umd.js CHANGED
@@ -18313,7 +18313,7 @@
18313
18313
  };
18314
18314
  return SendPrivateChatReadAckReq;
18315
18315
  })();
18316
- $root$2.ReplyPrivateChatMessageReq = (() => {
18316
+ const ReplyPrivateChatMessageReq = $root$2.ReplyPrivateChatMessageReq = (() => {
18317
18317
  /**
18318
18318
  * Properties of a ReplyPrivateChatMessageReq.
18319
18319
  * @exports IReplyPrivateChatMessageReq
@@ -18628,7 +18628,7 @@
18628
18628
  };
18629
18629
  return ReplyPrivateChatMessageReq;
18630
18630
  })();
18631
- $root$2.ReplyPrivateChatMessageResp = (() => {
18631
+ const ReplyPrivateChatMessageResp = $root$2.ReplyPrivateChatMessageResp = (() => {
18632
18632
  /**
18633
18633
  * Properties of a ReplyPrivateChatMessageResp.
18634
18634
  * @exports IReplyPrivateChatMessageResp
@@ -20490,8 +20490,8 @@
20490
20490
  });
20491
20491
  };
20492
20492
  const sendQuotePrivateChatMessage = params => webSocketServer.send(CmdIds$1.SendQuotePrivateChatMessage, params, {
20493
- encoder: SendPrivateChatMessageReq,
20494
- decoder: SendPrivateChatMessageResp
20493
+ encoder: ReplyPrivateChatMessageReq,
20494
+ decoder: ReplyPrivateChatMessageResp
20495
20495
  });
20496
20496
  const sendGroupChatMessage = params => webSocketServer.send(CmdIds$1.SendGroupChatMessage, params, {
20497
20497
  encoder: SendGroupChatMessageReq,
@@ -30368,7 +30368,10 @@
30368
30368
  }
30369
30369
  }
30370
30370
  const sendQuoteReplyMessage$1 = async (message, quoteReply, sendOptions) => {
30371
- const checkResult = await beforeSend(quoteReply, message, quoteReply, sendOptions);
30371
+ const checkResult = await beforeSend({
30372
+ conversationType: quoteReply.conversationType,
30373
+ targetId: quoteReply.targetId
30374
+ }, message, quoteReply, sendOptions);
30372
30375
  if (checkResult.code !== exports.ErrorCode.SUCCESS || !checkResult.message || !checkResult.sentArgs) {
30373
30376
  return {
30374
30377
  code: checkResult.code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onyx-p/imlib-web",
3
- "version": "2.5.7",
3
+ "version": "2.5.9",
4
4
  "main": "index.umd.js",
5
5
  "module": "index.esm.js",
6
6
  "types": "types/index.d.ts",