mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
Shamrock
: 不处理发给自己的消息
This commit is contained in:
parent
003c4d4456
commit
42ca17339e
@ -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())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user