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:
DrSmoothl committed 2026-07-25 20:28:28 +08:00
1 parent 13a32a2865
commit e16fa78b55
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,