Right exception when bot was muted

This commit is contained in:
Karlatemp 2021-08-23 10:59:23 +08:00
parent fc8fd70014
commit b3112dada3
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -157,7 +157,7 @@ internal abstract class SendMessageHandler<C : Contact> {
}
if (resp is MessageSvcPbSendMsg.Response.Failed) {
val contact = contact
when (resp.errorCode) {
when (resp.resultType) {
120 -> if (contact is Group) throw BotIsBeingMutedException(contact)
}
}