1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-07 12:43:32 +08:00

optimize init.

This commit is contained in:
Mrs4s 2021-03-05 18:53:31 +08:00
parent a4fac7d635
commit e11fa95c50

View File

@ -320,7 +320,6 @@ func (c *QQClient) init() {
_ = c.RefreshStatus()
seq, pkt := c.buildGetMessageRequestPacket(msg.SyncFlag_START, time.Now().Unix())
_, _ = c.sendAndWait(seq, pkt, requestParams{"used_reg_proxy": true, "init": true})
_, _ = c.SyncSessions()
c.stat.once.Do(func() {
c.OnGroupMessage(func(_ *QQClient, _ *message.GroupMessage) {
c.stat.MessageReceived++