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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 62 additions and 26 deletions

View file

@ -218,12 +218,7 @@ export default {
},
makeMessagesRead() {
if (this.getUnreadCount !== 0 && this.getMessages !== undefined) {
this.$store.dispatch('markMessagesRead', {
id: this.currentChat.id,
lastSeen: this.getMessages.messages.last().created_at,
});
}
this.$store.dispatch('markMessagesRead', { id: this.currentChat.id });
},
},
};