mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
client: update ShutUpTimestamp when receive mute event
This commit is contained in:
parent
bc4e9f3c95
commit
87e53dd6e2
@ -53,6 +53,16 @@ func decodeOnlinePushReqPacket(c *QQClient, info *network.IncomingPacketInfo, pa
|
|||||||
r.ReadBytes(6)
|
r.ReadBytes(6)
|
||||||
target := int64(uint32(r.ReadInt32()))
|
target := int64(uint32(r.ReadInt32()))
|
||||||
t := r.ReadInt32()
|
t := r.ReadInt32()
|
||||||
|
|
||||||
|
if target != 0 {
|
||||||
|
member := c.FindGroup(groupCode).FindMember(target)
|
||||||
|
if t > 0 {
|
||||||
|
member.ShutUpTimestamp = time.Now().Add(time.Second * time.Duration(t)).Unix()
|
||||||
|
} else {
|
||||||
|
member.ShutUpTimestamp = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
c.GroupMuteEvent.dispatch(c, &GroupMuteEvent{
|
c.GroupMuteEvent.dispatch(c, &GroupMuteEvent{
|
||||||
GroupCode: groupCode,
|
GroupCode: groupCode,
|
||||||
OperatorUin: operator,
|
OperatorUin: operator,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user