feat(widget): Add captain handoff request

This commit is contained in:
aakashb95
2026-05-01 23:01:05 +05:30
parent 68cd725a62
commit e89d8567fd
7 changed files with 109 additions and 2 deletions
@@ -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 = {}