Fix FriendAvatarChangedEvent

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
This commit is contained in:
Him188 2021-08-30 14:06:01 +08:00
parent de07e0eeb8
commit 4d76aa82b0

View File

@ -226,8 +226,9 @@ internal class FriendNoticeProcessor(
private fun NoticePipelineContext.handleAvatarChanged(body: ModCustomFace) {
if (body.uin == bot.id) {
collect(BotAvatarChangedEvent(bot))
} else {
collect(FriendAvatarChangedEvent(bot.getFriend(body.uin) ?: return))
}
collect(FriendAvatarChangedEvent(bot.getFriend(body.uin) ?: return))
}
private fun NoticePipelineContext.handleFriendDeleted(body: DelFriend) {