From 14bf5fc0a2c714c37db29d0e60a0c9c62e1ba9a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B1=A0?= Date: Sun, 18 Feb 2024 07:51:43 +0800 Subject: [PATCH] `Shamrock`: fix fakeReceiveSelfMsg --- .../main/java/moe/fuqiuluo/qqinterface/servlet/PacketSvc.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/PacketSvc.kt b/xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/PacketSvc.kt index 92f6bef3..22122c04 100644 --- a/xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/PacketSvc.kt +++ b/xposed/src/main/java/moe/fuqiuluo/qqinterface/servlet/PacketSvc.kt @@ -63,7 +63,7 @@ internal object PacketSvc: BaseSvc() { msgType = 166, msgSubType = 11, msgSeq = msgSeq, - u1 = msgSeq, + msgViaRandom = msgSeq, msgTime = System.currentTimeMillis() / 1000, u2 = 1, u3 = msgSeq, @@ -71,7 +71,9 @@ internal object PacketSvc: BaseSvc() { u4 = msgSeq - 2, u5 = msgSeq ), - body = MessageBody(RichMessage(builder())) + body = MessageBody(RichMessage( + elements = builder() + )) ) )