H-16: align takeover with channel AI workflow (#2)
* feat(conversations): complete manual AI takeover * fix(conversations): align AI takeover flow with channel AI * fix(conversations): close takeover review gaps --------- Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
@@ -885,10 +885,14 @@ export default {
|
||||
copilotAcceptedMessage = ''
|
||||
) {
|
||||
try {
|
||||
await this.$store.dispatch(
|
||||
const sentMessage = await this.$store.dispatch(
|
||||
'createPendingMessageAndSend',
|
||||
messagePayload
|
||||
);
|
||||
if (sentMessage?.ai_takeover_exited) {
|
||||
useAlert(this.$t('CONVERSATION.AI_TAKEOVER.EXIT_SUCCESS'));
|
||||
await this.$store.dispatch('getConversation', this.conversationId);
|
||||
}
|
||||
emitter.emit(BUS_EVENTS.SCROLL_TO_MESSAGE);
|
||||
emitter.emit(BUS_EVENTS.MESSAGE_SENT);
|
||||
this.removeFromDraft();
|
||||
|
||||
Reference in New Issue
Block a user