mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: 不支持的消息不再上报
This commit is contained in:
parent
b3981f22f2
commit
ebc3968c4e
@ -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) {
|
||||
msgHistory.splice(0, 100)
|
||||
@ -625,13 +627,13 @@ async function onSettingWindowCreated(view: Element) {
|
||||
</setting-panel>
|
||||
</setting-section>
|
||||
</div>
|
||||
<style>
|
||||
setting-panel {
|
||||
padding: 10px;
|
||||
}
|
||||
.tips {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
<style>
|
||||
setting-panel {
|
||||
padding: 10px;
|
||||
}
|
||||
.tips {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
</style>
|
||||
`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user