mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: 不支持的消息不再上报
This commit is contained in:
@@ -236,7 +236,9 @@ async function handleNewMessage(messages: MessageElement[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onebot_message_data.message.push(message_data)
|
if (message_data.type !== "unknown"){
|
||||||
|
onebot_message_data.message.push(message_data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (msgHistory.length > 10000) {
|
if (msgHistory.length > 10000) {
|
||||||
msgHistory.splice(0, 100)
|
msgHistory.splice(0, 100)
|
||||||
@@ -625,13 +627,13 @@ async function onSettingWindowCreated(view: Element) {
|
|||||||
</setting-panel>
|
</setting-panel>
|
||||||
</setting-section>
|
</setting-section>
|
||||||
</div>
|
</div>
|
||||||
<style>
|
<style>
|
||||||
setting-panel {
|
setting-panel {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
.tips {
|
.tips {
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
`
|
`
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user