fix: lua chat functions

This commit is contained in:
bangonicdd
2025-03-09 19:58:08 +09:00
parent 5fc36ce323
commit 71ee015f21
3 changed files with 24 additions and 37 deletions

View File

@@ -43,7 +43,12 @@ function nodeObserve(node:HTMLElement){
if(currentChar.type === 'group'){
return;
}
await runLuaButtonTrigger(currentChar, btnEvent);
const triggerResult = await runLuaButtonTrigger(currentChar, btnEvent);
if(triggerResult){
setCurrentChat(triggerResult.chat);
}
}, {
passive: true,
});