Skip to content

Commit

Permalink
bugfix(#830): Send silent message on unavailable end user contact inf…
Browse files Browse the repository at this point in the history
…ormation submission (#301)

- Fixes issue where bot sends unnecessary message after chat is finalized meaning that contact details are submitted with comment and chat window is automatically closed on user side.

Co-authored-by: Sander Sepp <[email protected]>
  • Loading branch information
SanderSepp and Sander Sepp authored Aug 21, 2024
1 parent 006be30 commit 99eb3ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
sendMessagePreview,
endChat,
setContactFormComment,
sendNewMessage,
sendNewSilentMessage,
} from "../../slices/chat-slice";
import { Message } from "../../model/message-model";
import StyledButton from "../styled-components/styled-button";
Expand Down Expand Up @@ -81,7 +81,7 @@ const UnavailableEndUserContacts = (): JSX.Element => {
contactMsgId,
t
);
dispatch(sendNewMessage(commentMsg));
dispatch(sendNewSilentMessage(commentMsg));
}

dispatch(
Expand Down

0 comments on commit 99eb3ee

Please sign in to comment.