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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user