Shamrock: 不处理发给自己的消息

This commit is contained in:
WhiteChi 2023-12-05 18:24:22 +08:00
parent 003c4d4456
commit 42ca17339e

View File

@ -182,7 +182,9 @@ internal object AioListener: IKernelMsgListener {
.updateMsgSeqByMsgHash(msgHash, record.msgSeq.toInt()) .updateMsgSeqByMsgHash(msgHash, record.msgSeq.toInt())
} }
if (!ShamrockConfig.enableSelfMsg() || record.senderUin != TicketSvc.getLongUin()) if (!ShamrockConfig.enableSelfMsg()
|| record.senderUin != TicketSvc.getLongUin()
|| record.peerUin == TicketSvc.getLongUin())
return@launch return@launch
val rawMsg = record.elements.toCQCode(record.chatType, record.peerUin.toString()) val rawMsg = record.elements.toCQCode(record.chatType, record.peerUin.toString())