We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de7b9e8 commit 73e2e4aCopy full SHA for 73e2e4a
packages/botonic-react/src/webchat/webchat.jsx
@@ -258,7 +258,6 @@ export const Webchat = forwardRef((props, ref) => {
258
}
259
260
const sendPayload = async payload => {
261
- addNewMessage(payload)
262
if (!payload) return
263
let input = { type: 'postback', payload }
264
await sendInput(input)
@@ -325,14 +324,6 @@ export const Webchat = forwardRef((props, ref) => {
325
324
/>
326
</div>
327
)
328
- const addNewMessage = value => {
329
- let newComponent = msgToBotonic({ delay: 100, typing: 100 })
330
- if (!newComponent) {
331
- addMessageComponent(<Text from='user'>{value}</Text>)
332
- setMenuIsOpened(false)
333
- return
334
- }
335
336
337
return (
338
<WebchatContext.Provider
0 commit comments