fix(message): preserve passive temporary session context

Keep passive replies associated with the correct conversation when the same contact is shared across groups. Active temporary conversations remain unsupported.

Fixes #308
This commit is contained in:
DrSmoothl committed 2026-08-04 00:20:56 +08:00
1 parent f572be2561
commit 185ba8353b
2 files changed
+99 -4

No files matched your search

+1 -4
View File
@@ -18,11 +18,8 @@ export interface ResponseGrp {
groupName?: pb<7, string>;
}
// ResponseHead field 7 is multi-purpose: a forward message carries
// `friendName` (field 6); a group temp-session push carries the source group
// (field 4). Subfields don't collide, so one interface covers both.
export interface ResponseForward {
tempGroupUin?: pb<4, uint_32>;
tempGroupUin?: pb<5, uint_32>;
friendName?: pb<6, string>;
}