Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Active state changed to chatting
Browse files Browse the repository at this point in the history
  • Loading branch information
knrt10 committed Jul 19, 2019
1 parent 04186a8 commit 103dfae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/lib/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } } });
},
Expand Down
4 changes: 2 additions & 2 deletions src/routes/Chat/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 103dfae

Please sign in to comment.