mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-04 00:12:25 +08:00
parent
9531ed8a01
commit
3eb9745485
@ -82,7 +82,7 @@ internal class OnlinePush {
|
|||||||
val sender = group[pbPushMsg.msg.msgHead.fromUin] as MemberImpl
|
val sender = group[pbPushMsg.msg.msgHead.fromUin] as MemberImpl
|
||||||
val name = extraInfo?.groupCard?.run {
|
val name = extraInfo?.groupCard?.run {
|
||||||
kotlin.runCatching {
|
kotlin.runCatching {
|
||||||
if (this[0] == 0x0A.toByte() && this[1] == 0x0A.toByte() && this[2] == 0x0A.toByte() && this[3] == 0x08.toByte())
|
if (this[0] == 0x0A.toByte())
|
||||||
loadAs(Oidb0x8fc.CommCardNameBuf.serializer()).richCardName?.firstOrNull { it.text.isNotEmpty() }
|
loadAs(Oidb0x8fc.CommCardNameBuf.serializer()).richCardName?.firstOrNull { it.text.isNotEmpty() }
|
||||||
?.text?.encodeToString()
|
?.text?.encodeToString()
|
||||||
else return@runCatching null
|
else return@runCatching null
|
||||||
|
Loading…
Reference in New Issue
Block a user