mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-26 16:04:59 +00:00
feat: Add a read indicator for web-widget channel (#4224)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -26,4 +26,11 @@ describe('#conversationMixin', () => {
|
||||
conversationMixin.methods.unReadMessages(conversationFixture.conversation)
|
||||
).toEqual(conversationFixture.unReadMessages);
|
||||
});
|
||||
it('should return the user message read flag', () => {
|
||||
const contactLastSeen = 1649856659;
|
||||
const createdAt = 1649859419;
|
||||
expect(
|
||||
conversationMixin.methods.hasUserReadMessage(createdAt, contactLastSeen)
|
||||
).toEqual(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user