fix(onebot): distinguish private poke conversations
Preserve the private conversation peer separately from the poke sender and target. Emit NapCat-compatible user_id and sender_id fields while keeping group notices unchanged. Add MsgPush and event-converter regression coverage for self-pokes across multiple friend sessions. Fixes #285.
This commit is contained in:
7 files changed
+126
-13
No files matched your search
@@ -111,7 +111,8 @@ export function convertFriendPoke(ctx: ConverterContext, event: FriendPoke): Jso
|
||||
return notice(ctx, event, {
|
||||
notice_type: 'notify',
|
||||
sub_type: 'poke',
|
||||
user_id: event.userUin,
|
||||
user_id: event.peerUin,
|
||||
sender_id: event.senderUin,
|
||||
target_id: event.targetUin,
|
||||
action: event.action,
|
||||
suffix: event.suffix,
|
||||
|
||||
Reference in new issue
Block a user