feat: Add a read indicator for web-widget channel (#4224)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -187,6 +187,18 @@ describe('#mutations', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
describe('#SET_CONVERSATION_LAST_SEEN', () => {
|
||||
it('sets conversation last seen timestamp', () => {
|
||||
const state = {
|
||||
conversationLastSeen: null,
|
||||
};
|
||||
|
||||
mutations[types.SET_CONVERSATION_LAST_SEEN](state, 1649856659);
|
||||
|
||||
expect(state.conversationLastSeen).toEqual(1649856659);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#UPDATE_CONVERSATION_CUSTOM_ATTRIBUTES', () => {
|
||||
it('update conversation custom attributes', () => {
|
||||
const custom_attributes = { order_id: 1001 };
|
||||
|
||||
Reference in New Issue
Block a user