mzdluo123 5 лет назад
Родитель
Сommit
90a7306822

+ 5 - 0
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/message/conversions.kt

@@ -164,6 +164,11 @@ internal fun MessageChain.toRichTextElems(forGroup: Boolean, withGeneralFlags: B
                         extraInfo = ImMsgBody.ExtraInfo(flags = 16,groupMask = 1)
                     )
                 )
+                elements.add(ImMsgBody.Elem(
+                    elemFlags2 = ImMsgBody.ElemFlags2(
+                        vipStatus = 1
+                    )
+                ))
             }
             is ForwardMessage,
             is MessageSource, // mirai metadata only

+ 2 - 1
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/MessageSvc.PbSendMsg.kt

@@ -145,7 +145,8 @@ internal object MessageSvcPbSendMsg : OutgoingPacketFactory<MessageSvcPbSendMsg.
                                 boolValid = true,
                                 fileSize = fileSize.toInt(),
                                 fileType = 4,
-                                time = voiceLength
+                                time = voiceLength,
+                                pbReserve = byteArrayOf(0)
                             )
                         }
                     )