mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Fix FriendAvatarChangedEvent
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
This commit is contained in:
parent
de07e0eeb8
commit
4d76aa82b0
@ -226,9 +226,10 @@ internal class FriendNoticeProcessor(
|
|||||||
private fun NoticePipelineContext.handleAvatarChanged(body: ModCustomFace) {
|
private fun NoticePipelineContext.handleAvatarChanged(body: ModCustomFace) {
|
||||||
if (body.uin == bot.id) {
|
if (body.uin == bot.id) {
|
||||||
collect(BotAvatarChangedEvent(bot))
|
collect(BotAvatarChangedEvent(bot))
|
||||||
}
|
} else {
|
||||||
collect(FriendAvatarChangedEvent(bot.getFriend(body.uin) ?: return))
|
collect(FriendAvatarChangedEvent(bot.getFriend(body.uin) ?: return))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun NoticePipelineContext.handleFriendDeleted(body: DelFriend) {
|
private fun NoticePipelineContext.handleFriendDeleted(body: DelFriend) {
|
||||||
for (id in body.uint64Uins) {
|
for (id in body.uint64Uins) {
|
||||||
|
Loading…
Reference in New Issue
Block a user