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:
6 files changed
+110
-11
No files matched your search
@@ -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>;
|
||||
|
||||
Reference in new issue
Block a user