1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-02-16 13:50:14 +08:00

Fix display of At

This commit is contained in:
Karlatemp 2021-01-01 23:54:13 +08:00 committed by GitHub
parent 6bc67c7c48
commit 9c60961271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ import net.mamoe.mirai.message.data.AtAll
internal fun At.toJceData(group: Group?): ImMsgBody.Text {
val text = "@${group?.members?.get(this.target)?.nameCardOrNick}" ?: "@$target"
val text = "@${group?.members?.get(this.target)?.nameCardOrNick ?: target}"
return ImMsgBody.Text(
str = text,
attr6Buf = buildPacket {