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,