From 837bae41fcb205f3ac45896c83e50ec24318e605 Mon Sep 17 00:00:00 2001 From: sandtechnology <20417547+sandtechnology@users.noreply.github.com> Date: Wed, 13 Jan 2021 18:53:00 +0800 Subject: [PATCH] Fix Long message error (#857) * Fix #195 again, also fix #539 * Let AtAll consistent with At Co-authored-by: Him188 * Change Member to NormalMember for capable events * Make StrangerRelationChangeEvent sealed * 2.0-RC * Fix dokka * Fix #195 again Co-authored-by: Him188 --- mirai-core/src/commonMain/kotlin/contact/GroupImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/contact/GroupImpl.kt b/mirai-core/src/commonMain/kotlin/contact/GroupImpl.kt index 8e28bcae2..24ed7075d 100644 --- a/mirai-core/src/commonMain/kotlin/contact/GroupImpl.kt +++ b/mirai-core/src/commonMain/kotlin/contact/GroupImpl.kt @@ -162,7 +162,7 @@ internal class GroupImpl( imageCnt = it }) - if (length > 702 || imageCnt > 2) { // 阈值为700左右,限制到3的倍数 + if (length > 702 || imageCnt > 1) { // 阈值为700左右,限制到3的倍数 return MiraiImpl.lowLevelSendGroupLongOrForwardMessage( bot, this.id,