This commit is contained in:
Him188
2020-05-11 09:50:18 +08:00
parent d8ef80ea97
commit 5be7f2bb2d
2 changed files with 3 additions and 3 deletions

View File

@@ -516,7 +516,7 @@ internal object Transformers528 : Map<Long, Lambda528> by mapOf(
fun ModCustomFace.transform(bot: QQAndroidBot): Sequence<Packet> {
if (uin == bot.id) {
return sequenceOf(BotFaceChangedEvent(bot))
return sequenceOf(BotAvatarChangedEvent(bot))
}
val friend = bot.getFriendOrNull(uin) ?: return emptySequence()
return sequenceOf(FriendFaceChangedEvent(friend))

View File

@@ -93,14 +93,14 @@ data class BotReloginEvent internal constructor(
/**
* [Bot] 头像被修改通过其他客户端修改了Bot的头像
*/
data class BotFaceChangedEvent(
data class BotAvatarChangedEvent(
override val bot: Bot
) : BotEvent, Packet, AbstractEvent()
/**
* [Friend] 头像被修改
*/
data class FriendFaceChangedEvent(
data class FriendAvatarChangedEvent(
override val friend: Friend
) : FriendEvent, Packet, AbstractEvent()