Commit 5be7f2bb authored by Him188's avatar Him188

Fix #315

parent d8ef80ea
......@@ -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))
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment