Bugfix: Use server timestamp to set agent_last_seen_at (#1114)
This commit is contained in:
parent
941272cccd
commit
3b23aa7913
12 changed files with 62 additions and 26 deletions
|
@ -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 });
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue