fix(protocol): retain C2C peer identities
Carry the stable sender identity through decoded private-message events and persist the UID/UIN pair at the receive boundary. This keeps later conversation operations independent of stale message rows or fallible profile lookups, with regression coverage for decoding and identity indexing.
This commit is contained in:
5 files changed
+40
-2
No files matched your search
@@ -228,6 +228,9 @@ export interface QQEvent {
|
||||
export interface FriendMessage extends QQEvent {
|
||||
kind: 'friend_message';
|
||||
senderUin: number;
|
||||
/** Stable QQ UID carried by ResponseHead. Kept internally so the identity
|
||||
* index can preserve the exact C2C peer instead of re-resolving its UIN. */
|
||||
senderUid?: string;
|
||||
senderNick: string;
|
||||
msgSeq: number;
|
||||
msgId: number;
|
||||
|
||||
Reference in new issue
Block a user