mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-05 21:22:32 +08:00
Drop emoji when rendering at; fix #1938
This commit is contained in:
parent
7a2d2ef1f9
commit
cf39a628a2
31
mirai-core-utils/src/commonMain/kotlin/Strings.kt
Normal file
31
mirai-core-utils/src/commonMain/kotlin/Strings.kt
Normal file
File diff suppressed because one or more lines are too long
@ -15,6 +15,7 @@ import net.mamoe.mirai.contact.Group
|
||||
import net.mamoe.mirai.contact.nameCardOrNick
|
||||
import net.mamoe.mirai.internal.network.protocol.data.proto.ImMsgBody
|
||||
import net.mamoe.mirai.message.data.*
|
||||
import net.mamoe.mirai.utils.dropEmoji
|
||||
import net.mamoe.mirai.utils.safeCast
|
||||
|
||||
|
||||
@ -47,7 +48,7 @@ internal fun At.toJceData(
|
||||
} else {
|
||||
findFromGroup(group) ?: findFromSource()
|
||||
} ?: target
|
||||
}"
|
||||
}".dropEmoji()
|
||||
return ImMsgBody.Text(
|
||||
str = text,
|
||||
attr6Buf = buildPacket {
|
||||
|
Loading…
Reference in New Issue
Block a user