feat: block replies during agent bot ownership

This commit is contained in:
Sojan Jose
2026-06-28 20:10:46 -07:00
parent d0b1c055e8
commit b9834c3a18
7 changed files with 94 additions and 12 deletions
@@ -716,6 +716,21 @@ describe('#mutations', () => {
expect(state.allConversations[0].meta.assignee).toEqual(assignee);
expect(state.allConversations[1].meta.assignee).toBeUndefined();
});
it('should update assignee type when provided', () => {
const assignee = { id: 1, name: 'Agent' };
const state = {
allConversations: [{ id: 1, meta: { assignee_type: 'AgentBot' } }],
};
mutations[types.ASSIGN_AGENT](state, {
conversationId: 1,
assignee,
assigneeType: 'User',
});
expect(state.allConversations[0].meta.assignee_type).toEqual('User');
});
});
describe('#ASSIGN_PRIORITY', () => {