Skip to content

Commit

Permalink
feat: support sender's nickname in private message
Browse files Browse the repository at this point in the history
  • Loading branch information
Fripine authored Jun 21, 2024
1 parent fdadab7 commit 646f811
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func decodeOlPushServicePacket(c *QQClient, pkt *network.Packet) (any, error) {
prvMsg := msgConverter.ParsePrivateMessage(&msg)
_ = c.PreProcessPrivateMessageEvent(prvMsg)
if prvMsg.Sender.Uin != c.Uin {
prvMsg.Sender.Nickname = c.cache.GetFriend(prvMsg.Sender.Uin).Nickname
c.PrivateMessageEvent.dispatch(c, prvMsg)
} else {
c.SelfPrivateMessageEvent.dispatch(c, prvMsg)
Expand Down

0 comments on commit 646f811

Please sign in to comment.