chore: Assign to agent who create new message from contact panel (#3924)

This commit is contained in:
Muhsin Keloth
2022-02-07 13:43:16 +05:30
committed by GitHub
parent 9f37a6e2ba
commit f4c0ce5dfa
2 changed files with 11 additions and 1 deletions

View File

@@ -24,7 +24,14 @@ export const actions = {
commit(types.default.SET_CONTACT_CONVERSATIONS_UI_FLAG, {
isCreating: true,
});
const { inboxId, message, contactId, sourceId, mailSubject } = params;
const {
inboxId,
message,
contactId,
sourceId,
mailSubject,
assigneeId,
} = params;
try {
const { data } = await ConversationApi.create({
inbox_id: inboxId,
@@ -34,6 +41,7 @@ export const actions = {
mail_subject: mailSubject,
},
message,
assignee_id: assigneeId,
});
commit(types.default.ADD_CONTACT_CONVERSATION, {
id: contactId,