mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix group member permission.
This commit is contained in:
parent
ba961e02e9
commit
bebbc838c8
@ -475,7 +475,7 @@ func decodeGroupMemberInfoResponse(c *QQClient, _ uint16, payload []byte) (inter
|
||||
if rsp.MemInfo.Uin == group.OwnerUin {
|
||||
return Owner
|
||||
}
|
||||
if rsp.MemInfo.Role == 1 {
|
||||
if rsp.MemInfo.Role == 2 {
|
||||
return Administrator
|
||||
}
|
||||
return Member
|
||||
|
@ -27,6 +27,7 @@ func init() {
|
||||
decoders["RegPrxySvc.PushParam"] = decodePushParamPacket
|
||||
decoders["RegPrxySvc.PbSyncMsg"] = decodeMsgSyncResponse
|
||||
decoders["PbMessageSvc.PbMsgReadedReport"] = decodeMsgReadedResponse
|
||||
decoders["MessageSvc.PushReaded"] = ignoreDecoder
|
||||
}
|
||||
|
||||
type (
|
||||
|
Loading…
x
Reference in New Issue
Block a user