From 103dfaef6a5fa50f1c22a883282f6cd658ec0066 Mon Sep 17 00:00:00 2001 From: knrt10 Date: Fri, 19 Jul 2019 23:42:45 +0530 Subject: [PATCH] Active state changed to chatting --- src/lib/hooks.js | 1 - src/routes/Chat/container.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/hooks.js b/src/lib/hooks.js index 887521203..9938c6b44 100644 --- a/src/lib/hooks.js +++ b/src/lib/hooks.js @@ -39,7 +39,6 @@ const api = { Livechat.sendVisitorNavigation({ token, pageInfo: { change, title, location: { href } } }); return; } - Livechat.sendVisitorNavigation({ token, rid: room._id, pageInfo: { change, title, location: { href } } }); }, diff --git a/src/routes/Chat/container.js b/src/routes/Chat/container.js index 279ba76fc..d152d4d82 100644 --- a/src/routes/Chat/container.js +++ b/src/routes/Chat/container.js @@ -100,9 +100,9 @@ export class ChatContainer extends Component { const alert = { id: createToken(), children: reason, error: true, timeout: 5000 }; await dispatch({ alerts: (alerts.push(alert), alerts) }); } - await Livechat.changeUserState('active'); + await Livechat.changeUserState('chatting'); await Livechat.notifyVisitorTyping(rid, user.username, false); - store.setState({ userState: 'active' }); + store.setState({ userState: 'chatting' }); } doFileUpload = async(rid, file) => {