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:
parent
6bc67c7c48
commit
9c60961271
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user