fix(protocol): correct group membership notices

Derive group increase approval and invitation subtypes from the member-change operation code instead of actor identity.

Treat voluntary leave field 5 as structured metadata and attribute the operation to the departing member so valid notices are not discarded.

Add protocol and OneBot regression coverage for issue #237.
This commit is contained in:
DrSmoothl committed 2026-07-16 19:41:48 +08:00
1 parent 0503af2fcc
commit 0e3bbc6906
6 files changed
+110 -11

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ export interface GroupChange {
groupUin?: pb<1, uint_32>;
flag?: pb<2, uint_32>;
memberUid?: pb<3, string>;
/** Shared member-change operation code; used by both increase and decrease pushes. */
decreaseType?: pb<4, uint_32>;
operatorBytes?: pb<5, bytes>;
increaseType?: pb<6, uint_32>;