Commit 7049cc45 authored by Him188's avatar Him188

Simplify expression

parent fb19c0af
...@@ -479,16 +479,7 @@ internal abstract class QQAndroidBotBase constructor( ...@@ -479,16 +479,7 @@ internal abstract class QQAndroidBotBase constructor(
return group.sendMessage( return group.sendMessage(
RichMessage.longMessage( RichMessage.longMessage(
brief = message.joinToString(limit = 27) { brief = message.joinToString(limit = 27) { it.contentToString() },
when (it) {
is PlainText -> it.stringValue
is At -> it.display
is AtAll -> it.display
is Image -> "[图片]"
is Face -> "[表情]"
else -> ""
}
},
resId = resId, resId = resId,
timeSeconds = time 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