diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/EventPacketHandler.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/EventPacketHandler.kt index 0363b3a3e..23ae35f9c 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/EventPacketHandler.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/EventPacketHandler.kt @@ -16,8 +16,10 @@ import net.mamoe.mirai.network.protocol.tim.packet.action.ClientSendFriendMessag import net.mamoe.mirai.network.protocol.tim.packet.action.ClientSendGroupMessagePacket import net.mamoe.mirai.network.protocol.tim.packet.action.ServerSendFriendMessageResponsePacket import net.mamoe.mirai.network.protocol.tim.packet.action.ServerSendGroupMessageResponsePacket -import net.mamoe.mirai.network.protocol.tim.packet.event.* -import net.mamoe.mirai.utils.MiraiLogger +import net.mamoe.mirai.network.protocol.tim.packet.event.IgnoredServerEventPacket +import net.mamoe.mirai.network.protocol.tim.packet.event.ServerFriendMessageEventPacket +import net.mamoe.mirai.network.protocol.tim.packet.event.ServerGroupMessageEventPacket +import net.mamoe.mirai.network.protocol.tim.packet.event.ServerGroupUploadFileEventPacket /** * 处理消息事件, 承担消息发送任务. @@ -60,17 +62,6 @@ class EventPacketHandler(session: BotSession) : PacketHandler(session) { is ServerFriendOnlineStatusChangedPacket.Encrypted -> distributePacket(packet.decrypt(sessionKey)) is ServerFriendOnlineStatusChangedPacket -> { - MiraiLogger.logInfo("${packet.qq.toLong()} 登录状态改变为 ${packet.status}") - //TODO - } - - is ServerFriendTypingStartedPacket -> { - MiraiLogger.logInfo("${packet.qq.toLong()} 正在输入") - //TODO - } - - is ServerFriendTypingCanceledPacket -> { - MiraiLogger.logInfo("${packet.qq.toLong()} 取消了输入") //TODO } diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/TypingEventPackets.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/TypingEventPackets.kt deleted file mode 100644 index 90c8f89eb..000000000 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/TypingEventPackets.kt +++ /dev/null @@ -1,19 +0,0 @@ -package net.mamoe.mirai.network.protocol.tim.packet.event - -import kotlinx.io.core.ByteReadPacket - - -sealed class ServerFriendTypingPacket(input: ByteReadPacket, eventIdentity: EventPacketIdentity) : ServerEventPacket(input, eventIdentity) { - val qq get() = eventIdentity.from - -} - -/** - * 对方正在输入 - */ -class ServerFriendTypingStartedPacket(input: ByteReadPacket, eventIdentity: EventPacketIdentity) : ServerFriendTypingPacket(input, eventIdentity) - -/** - * 对方取消了输入 - */ -class ServerFriendTypingCanceledPacket(input: ByteReadPacket, eventIdentity: EventPacketIdentity) : ServerFriendTypingPacket(input, eventIdentity) \ No newline at end of file