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

+4 -1
View File
@@ -360,7 +360,10 @@ export interface GroupInviteEvent extends QQEvent {
export interface FriendPokeEvent extends QQEvent {
kind: 'friend_poke';
userUin: number;
/** The other participant whose private conversation contains this notice. */
peerUin: number;
/** The account that performed the poke, which may be the logged-in account. */
senderUin: number;
targetUin: number;
action: string;
suffix: string;