fix: Contact conversations are showing in the chat list (#4078)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
parent
6097f4c122
commit
c608ca37e0
3 changed files with 5 additions and 5 deletions
|
@ -80,7 +80,11 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
conversationId() {
|
||||||
|
this.fetchConversationIfUnavailable();
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.dispatch('agents/get');
|
this.$store.dispatch('agents/get');
|
||||||
this.initialize();
|
this.initialize();
|
||||||
|
|
|
@ -66,9 +66,6 @@ export const actions = {
|
||||||
id: contactId,
|
id: contactId,
|
||||||
data: response.data.payload,
|
data: response.data.payload,
|
||||||
});
|
});
|
||||||
commit(types.default.SET_ALL_CONVERSATION, response.data.payload, {
|
|
||||||
root: true,
|
|
||||||
});
|
|
||||||
commit(types.default.SET_CONTACT_CONVERSATIONS_UI_FLAG, {
|
commit(types.default.SET_CONTACT_CONVERSATIONS_UI_FLAG, {
|
||||||
isFetching: false,
|
isFetching: false,
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,7 +19,6 @@ describe('#actions', () => {
|
||||||
types.default.SET_CONTACT_CONVERSATIONS,
|
types.default.SET_CONTACT_CONVERSATIONS,
|
||||||
{ id: 1, data: conversationList },
|
{ id: 1, data: conversationList },
|
||||||
],
|
],
|
||||||
[types.default.SET_ALL_CONVERSATION, conversationList, { root: true }],
|
|
||||||
[
|
[
|
||||||
types.default.SET_CONTACT_CONVERSATIONS_UI_FLAG,
|
types.default.SET_CONTACT_CONVERSATIONS_UI_FLAG,
|
||||||
{ isFetching: false },
|
{ isFetching: false },
|
||||||
|
|
Loading…
Reference in a new issue