Commit 7049cc45 authored by Him188's avatar Him188

Simplify expression

parent fb19c0af
......@@ -479,16 +479,7 @@ internal abstract class QQAndroidBotBase constructor(
return group.sendMessage(
RichMessage.longMessage(
brief = message.joinToString(limit = 27) {
when (it) {
is PlainText -> it.stringValue
is At -> it.display
is AtAll -> it.display
is Image -> "[图片]"
is Face -> "[表情]"
else -> ""
}
},
brief = message.joinToString(limit = 27) { it.contentToString() },
resId = resId,
timeSeconds = time
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment