We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e972d42 + 4afaa0a commit b2eda7bCopy full SHA for b2eda7b
src/milky/transform/event.ts
@@ -203,10 +203,11 @@ export async function transformPrivateMessageEvent(
203
for (const element of message.elements) {
204
if (element.grayTipElement?.jsonGrayTipElement?.busiId === '1061') {
205
const { templParam } = element.grayTipElement.jsonGrayTipElement.xmlToJsonParam
206
+ const userId = +message.peerUin || +(await ctx.ntUserApi.getUinByUid(message.peerUid))
207
return {
208
eventType: 'friend_nudge',
209
data: {
- user_id: +message.peerUin,
210
+ user_id: userId,
211
is_self_send: templParam.get('uin_str1') === selfInfo.uin,
212
is_self_receive: templParam.get('uin_str2') === selfInfo.uin,
213
display_action: templParam.get('action_str'),
0 commit comments