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) => {