fix: Contact conversations are showing in the chat list (#4078)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Sivin Varghese 2022-03-21 11:46:43 +05:30 committed by GitHub
parent 6097f4c122
commit c608ca37e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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();

View file

@ -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,
}); });

View file

@ -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 },