From 58413044e9588a3b19cbba00e6457e833be34856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B1=A0?= Date: Fri, 16 Feb 2024 09:16:05 +0800 Subject: [PATCH] `Shamrock`: typo log --- .../fuqiuluo/shamrock/remote/service/listener/AioListener.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/listener/AioListener.kt b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/listener/AioListener.kt index b3e318e1..5ee1edd0 100644 --- a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/listener/AioListener.kt +++ b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/service/listener/AioListener.kt @@ -114,19 +114,20 @@ internal object AioListener : IKernelMsgListener { MsgConstant.KCHATTYPETEMPC2CFROMGROUP -> { if (!ShamrockConfig.allowTempSession()) return - LogCenter.log("私聊临时消息(private = ${record.senderUin}, id = $msgHash, msg = $rawMsg)") ShamrockConfig.getPrivateRule()?.let { rule -> if (!rule.black.isNullOrEmpty() && rule.black.contains(record.senderUin)) return if (!rule.white.isNullOrEmpty() && !rule.white.contains(record.senderUin)) return } - var groupCode = 0L var fromNick = "" MsgSvc.getTempChatInfo(record.chatType, record.senderUid).onSuccess { groupCode = it.groupCode.toLong() fromNick = it.fromNick } + + LogCenter.log("私聊临时消息(private = ${record.senderUin}, groupId=$groupCode, id = $msgHash, msg = $rawMsg)") + if (!GlobalEventTransmitter.MessageTransmitter.transPrivateMessage( record, record.elements,