@napuketto/adapter 0.13.1 → 0.13.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.
@@ -1,6 +1,6 @@
1
1
  import { S as ActionRegistry, _ as prepareVideoElements, a as extractSysMsgEnvelope, b as BaseAction, c as narrowSysMsgBlobs, f as toHex, g as ensureSilk, r as decodeProtoTree, t as toUnixSeconds, u as recognizeSysMsg, y as BaseProtocolAdapter } from "../core-CMqpb5-m.mjs";
2
+ import { n as senderNickname, r as subscribeRawMessages } from "../raw-message-D2vA27kj.mjs";
2
3
  import { a as MS_TO_SEC$3, i as narrowBuddyReqs, n as extractEssenceSetSysMsg, o as resolveUin, r as narrowEssenceGroupArg, t as diffEssenceList } from "../essence-DzYnP60o.mjs";
3
- import { n as subscribeRawMessages } from "../raw-message-C1E7jbjl.mjs";
4
4
  import { n as firstUntranslatedGrayTip, t as collectGrayTipUids } from "../gray-tip-ByF-MKeV.mjs";
5
5
  import { n as createWsServerSchema, t as createHttpServerSchema } from "../transport-schema-BEzr06W3.mjs";
6
6
  import { ChatType, GrayTipSubType, GroupApi, GroupNotifyMsgStatus, GroupNotifyMsgType, NTGroupMemberRole, NTGroupRequestOperateTypes, TicketApi, TipGroupElementType, WebHonorType, kernelError, toCanonicalElements } from "@napuketto/kernel";
@@ -1852,7 +1852,7 @@ function toOb11MessageInfo(msg, unique, ctx = {}) {
1852
1852
  message_type: messageType,
1853
1853
  sender: {
1854
1854
  user_id: Number(msg.senderUin),
1855
- nickname: msg.sendNickName
1855
+ nickname: senderNickname(msg)
1856
1856
  },
1857
1857
  time: toUnixSeconds(msg.msgTime),
1858
1858
  message: canonicalToSegments(elements),
@@ -3558,7 +3558,7 @@ function toOb11MessageEvent(msg, selfUin, unique, messageFormat = "array", ctx =
3558
3558
  if (msg.chatType === ChatType.GROUP) {
3559
3559
  const sender = {
3560
3560
  user_id: userId,
3561
- nickname: msg.sendNickName,
3561
+ nickname: senderNickname(msg),
3562
3562
  role: ctx.senderRole ?? "member"
3563
3563
  };
3564
3564
  if (msg.sendMemberName !== void 0) sender.card = msg.sendMemberName;
@@ -3575,7 +3575,7 @@ function toOb11MessageEvent(msg, selfUin, unique, messageFormat = "array", ctx =
3575
3575
  if (msg.chatType === ChatType.C2C_TEMP) subType = "group";
3576
3576
  const sender = {
3577
3577
  user_id: userId,
3578
- nickname: msg.sendNickName
3578
+ nickname: senderNickname(msg)
3579
3579
  };
3580
3580
  return {
3581
3581
  ...base,