Skip to content

Commit

Permalink
fix: Fix notification feature when bot is embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed May 11, 2024
1 parent fdb6573 commit a4942a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ChatBotContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ const ChatBotContainer = ({ flow }: { flow: Flow }) => {
}

const message = messages[messages.length - 1]
// if message is null or sent by user or is bot typing, return
if (!message || message.sender === "user" || isBotTyping) {
// if message is null or sent by user or is bot typing or bot is embedded, return
if (!message || message.sender === "user" || isBotTyping || botOptions.theme?.embedded) {
return;
}

Expand Down

0 comments on commit a4942a7

Please sign in to comment.