1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-03-30 01:40:29 +08:00

Remove senseless response

This commit is contained in:
Him188 2020-03-29 02:34:55 +08:00
parent aa553ebb75
commit 7efb7834db
2 changed files with 0 additions and 6 deletions
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid
QQAndroidBot.kt
network/protocol/packet/chat

View File

@ -408,8 +408,6 @@ internal abstract class QQAndroidBotBase constructor(
when (response) {
is MultiMsg.ApplyUp.Response.MessageTooLarge ->
error("message is too large")
is MultiMsg.ApplyUp.Response.OK -> {
resId = response.resId
}
is MultiMsg.ApplyUp.Response.RequireUpload -> {
resId = response.proto.msgResid

View File

@ -170,10 +170,6 @@ internal class MultiMsg {
}
object MessageTooLarge : Response()
data class OK(
val resId: String
) : Response()
}
// captured from group