Feature: Rich Message Types (#610)
Co-authored-by: Pranav Raj S <pranavrajs@gmail.com> Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
This commit is contained in:
parent
48f603798b
commit
b0950d6880
58 changed files with 997 additions and 146 deletions
|
@ -1,6 +1,5 @@
|
|||
import Cookies from 'js-cookie';
|
||||
import { IFrameHelper } from '../sdk/IFrameHelper';
|
||||
import { onBubbleClick } from '../sdk/bubbleHelpers';
|
||||
|
||||
const runSDK = ({ baseUrl, websiteToken }) => {
|
||||
const chatwootSettings = window.chatwootSettings || {};
|
||||
|
@ -13,7 +12,7 @@ const runSDK = ({ baseUrl, websiteToken }) => {
|
|||
websiteToken,
|
||||
|
||||
toggle() {
|
||||
onBubbleClick();
|
||||
IFrameHelper.events.toggleBubble();
|
||||
},
|
||||
|
||||
setUser(identifier, user) {
|
||||
|
@ -39,7 +38,7 @@ const runSDK = ({ baseUrl, websiteToken }) => {
|
|||
|
||||
reset() {
|
||||
if (window.$chatwoot.isOpen) {
|
||||
onBubbleClick();
|
||||
IFrameHelper.events.toggleBubble();
|
||||
}
|
||||
|
||||
Cookies.remove('cw_conversation');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue