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

Commit 103dfae

Browse files
committed
Active state changed to chatting
1 parent 04186a8 commit 103dfae

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/lib/hooks.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ const api = {
3939
Livechat.sendVisitorNavigation({ token, pageInfo: { change, title, location: { href } } });
4040
return;
4141
}
42-
4342

4443
Livechat.sendVisitorNavigation({ token, rid: room._id, pageInfo: { change, title, location: { href } } });
4544
},

src/routes/Chat/container.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ export class ChatContainer extends Component {
100100
const alert = { id: createToken(), children: reason, error: true, timeout: 5000 };
101101
await dispatch({ alerts: (alerts.push(alert), alerts) });
102102
}
103-
await Livechat.changeUserState('active');
103+
await Livechat.changeUserState('chatting');
104104
await Livechat.notifyVisitorTyping(rid, user.username, false);
105-
store.setState({ userState: 'active' });
105+
store.setState({ userState: 'chatting' });
106106
}
107107

108108
doFileUpload = async(rid, file) => {

0 commit comments

Comments
 (0)