Skip to content

Commit 8598b5f

Browse files
committed
🐛 fix: fix can not setPluginMessage without trigger ai message
1 parent 1260cc4 commit 8598b5f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/client/lobeChat.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@ class LobeChat {
100100
top?.postMessage({ type: PluginChannel.fetchPluginMessage }, '*');
101101
});
102102

103-
setPluginMessage = (content: any) => {
104-
top?.postMessage({ content, type: PluginChannel.fillStandalonePluginContent }, '*');
103+
setPluginMessage = (content: any, triggerAiMessage: boolean) => {
104+
top?.postMessage(
105+
{ content, triggerAiMessage, type: PluginChannel.fillStandalonePluginContent },
106+
'*',
107+
);
105108
};
106109

107110
getPluginState = <T = any>(key: string) =>

0 commit comments

Comments
 (0)