Skip to content

Commit

Permalink
馃悰 fix: fix can not setPluginMessage without trigger ai message
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 16, 2024
1 parent 1260cc4 commit 8598b5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/client/lobeChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ class LobeChat {
top?.postMessage({ type: PluginChannel.fetchPluginMessage }, '*');
});

setPluginMessage = (content: any) => {
top?.postMessage({ content, type: PluginChannel.fillStandalonePluginContent }, '*');
setPluginMessage = (content: any, triggerAiMessage: boolean) => {
top?.postMessage(
{ content, triggerAiMessage, type: PluginChannel.fillStandalonePluginContent },
'*',
);
};

getPluginState = <T = any>(key: string) =>
Expand Down

0 comments on commit 8598b5f

Please sign in to comment.