Bugfix: Use server timestamp to set agent_last_seen_at (#1114)

This commit is contained in:
Pranav Raj S
2020-08-03 13:40:20 +05:30
committed by GitHub
parent 941272cccd
commit 3b23aa7913
12 changed files with 62 additions and 26 deletions

View File

@@ -29,10 +29,8 @@ class ConversationApi extends ApiClient {
);
}
markMessageRead({ id, lastSeen }) {
return axios.post(`${this.url}/${id}/update_last_seen`, {
agent_last_seen_at: lastSeen,
});
markMessageRead({ id }) {
return axios.post(`${this.url}/${id}/update_last_seen`);
}
toggleTyping({ conversationId, status }) {