From 6614d2383adb9206ec3e8712c5b8a6ea293e1327 Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Tue, 10 Aug 2021 15:08:36 +0800 Subject: [PATCH] fix: friend poke self. --- client/online_push.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/online_push.go b/client/online_push.go index 526a1c3a..63efe624 100644 --- a/client/online_push.go +++ b/client/online_push.go @@ -211,10 +211,12 @@ func msgType0x210Sub27Decoder(c *QQClient, protobuf []byte) error { func msgType0x210Sub122Decoder(c *QQClient, protobuf []byte) error { t := ¬ify.GeneralGrayTipInfo{} _ = proto.Unmarshal(protobuf, t) - var sender int64 + var sender, receiver int64 for _, templ := range t.MsgTemplParam { if templ.Name == "uin_str1" { sender, _ = strconv.ParseInt(templ.Value, 10, 64) + } else if templ.Name == "uin_str2" { + receiver, _ = strconv.ParseInt(templ.Value, 10, 64) } } if sender == 0 { @@ -222,7 +224,7 @@ func msgType0x210Sub122Decoder(c *QQClient, protobuf []byte) error { } c.dispatchFriendNotifyEvent(&FriendPokeNotifyEvent{ Sender: sender, - Receiver: c.Uin, + Receiver: receiver, }) return nil }