fix: Add an action cable events for label updates (#5694)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Tejaswini Chile
2022-10-21 16:12:35 -07:00
committed by GitHub
co-authored by Pranav Raj S
parent 782165478b
commit 4a299a9441
6 changed files with 41 additions and 2 deletions
@@ -252,6 +252,12 @@ const actions = {
meta: { sender },
} = conversation;
commit(types.UPDATE_CONVERSATION, conversation);
dispatch('conversationLabels/setConversationLabel', {
id: conversation.id,
data: conversation.labels,
});
dispatch('contacts/setContact', sender);
},