mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-03 15:10:14 +08:00
Fix display of At
This commit is contained in:
parent
1117c14c7d
commit
6bc67c7c48
@ -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 {
|
||||
@ -48,4 +48,4 @@ internal val atAllData = ImMsgBody.Elem(
|
||||
writeShort(0) // const
|
||||
}.readBytes()
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user