fix: Update the logic to show read status for web (#6107)

This commit is contained in:
Pranav Raj S
2022-12-21 09:58:56 -08:00
parent 8e13a06833
commit a3e5aad753
5 changed files with 75 additions and 76 deletions

View File

@@ -34,9 +34,6 @@ export default {
lastNonActivityMessageFromAPI
);
},
hasUserReadMessage(createdAt, contactLastSeen) {
return !(contactLastSeen - createdAt < 0);
},
readMessages(m) {
return m.messages.filter(
chat => chat.created_at * 1000 <= m.agent_last_seen_at * 1000