feat(widget): Add captain handoff request
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
toggleTyping,
|
||||
setUserLastSeenAt,
|
||||
toggleStatus,
|
||||
requestHandoff,
|
||||
setCustomAttributes,
|
||||
deleteCustomAttribute,
|
||||
} from 'widget/api/conversation';
|
||||
@@ -212,6 +213,11 @@ export const actions = {
|
||||
await toggleStatus();
|
||||
},
|
||||
|
||||
requestHandoff: async ({ dispatch }) => {
|
||||
await requestHandoff();
|
||||
dispatch('conversationAttributes/getAttributes', {}, { root: true });
|
||||
},
|
||||
|
||||
setCustomAttributes: async (
|
||||
{ commit, rootGetters },
|
||||
customAttributes = {}
|
||||
|
||||
Reference in New Issue
Block a user