Skip to content

Commit

Permalink
refactor: 处理加群请求/邀请
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Jul 24, 2024
1 parent 98ab639 commit 856a588
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions client/packets/oidb/SetGroupRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@ package oidb

import (
"github.com/LagrangeDev/LagrangeGo/client/packets/pb/service/oidb"
"github.com/LagrangeDev/LagrangeGo/utils"
"github.com/RomiChan/protobuf/proto"
)

func BuildSetGroupRequestReq(accept bool, sequence uint64, typ uint32, groupUin uint32, message string) (*OidbPacket, error) {
var acceptInt uint32
if accept {
acceptInt = 1
} else {
acceptInt = 2
}
body := oidb.OidbSvcTrpcTcp0X10C8_1{
Accept: acceptInt,
Accept: uint32(utils.Bool2Int(!accept) + 1),
Body: &oidb.OidbSvcTrpcTcp0X10C8_1Body{
Sequence: sequence,
EventType: typ,
Expand Down

0 comments on commit 856a588

Please sign in to comment.