mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 23:50:08 +08:00
Fix FriendAvatarChangedEvent
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
This commit is contained in:
parent
de07e0eeb8
commit
4d76aa82b0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user