Fix error message when sending message

This commit is contained in:
Him188 2021-03-04 14:50:44 +08:00
parent 44b9fd2d6a
commit 17a5d3821f

View File

@ -156,11 +156,11 @@ internal abstract class SendMessageHandler<C : Contact> {
}
}
check(resp is MessageSvcPbSendMsg.Response.SUCCESS) {
"Send group message failed: $resp"
"Send message failed: $resp"
}
}
is MusicSharePacket.Response -> {
resp.pkg.checkSuccess("send group music share")
resp.pkg.checkSuccess("send music share")
source = constructSourceFromMusicShareResponse(finalMessage, resp)
}
@ -175,7 +175,7 @@ internal abstract class SendMessageHandler<C : Contact> {
source!!.ensureSequenceIdAvailable()
} catch (e: Exception) {
bot.network.logger.warning(
"Timeout awaiting sequenceId for group message(${finalMessage.content.take(10)}). Some features may not work properly",
"Timeout awaiting sequenceId for message(${finalMessage.content.take(10)}). Some features may not work properly",
e
)