mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
remove group sync.
This commit is contained in:
parent
28c99f5587
commit
a407d93453
@ -775,24 +775,6 @@ func decodeOnlinePushReqPacket(c *QQClient, seq uint16, payload []byte) (interfa
|
||||
}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
c.Debug("syncing groups.")
|
||||
old := c.GroupList
|
||||
any := func(code int64) bool {
|
||||
for _, g := range old {
|
||||
if g.Code == code {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
if err := c.ReloadGroupList(); err == nil {
|
||||
for _, g := range c.GroupList {
|
||||
if !any(g.Code) {
|
||||
c.dispatchJoinGroupEvent(g)
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user