Skip to content

Commit

Permalink
Srravich/bugfix/restart option (#2095)
Browse files Browse the repository at this point in the history
* Saga wrapper and webchat bump

Signed-off-by: Srinaath Ravichandran <[email protected]>

Handling saga errors

Signed-off-by: Srinaath Ravichandran <[email protected]>

Revert res.ok

Signed-off-by: Srinaath Ravichandran <[email protected]>

Track saga error

Signed-off-by: Srinaath Ravichandran <[email protected]>

* Revert source maps

Signed-off-by: Srinaath Ravichandran <[email protected]>

* Fixing restart conversation option

Signed-off-by: Srinaath Ravichandran <[email protected]>

* Restart option unit test

Signed-off-by: Srinaath Ravichandran <[email protected]>

Co-authored-by: Srinaath Ravichandran <[email protected]>
  • Loading branch information
srinaath and Srinaath Ravichandran authored Mar 7, 2020
1 parent 155eaac commit 47c8349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/app/client/src/state/sagas/chatSagas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import {
RestartConversationStatus,
setRestartConversationStatus,
RestartConversationPayload,
RestartConversationOptions,
} from '@bfemulator/app-shared';
import {
createCognitiveServicesSpeechServicesPonyfillFactory,
Expand Down Expand Up @@ -803,6 +804,7 @@ describe('The ChatSagas,', () => {
},
mode: 'livechat' as any,
userId: 'someUserId',
restartConversationOption: RestartConversationOptions.NewUserId,
};
expect(gen.next().value).toEqual(select(getChatFromDocumentId, payload.documentId));

Expand Down Expand Up @@ -869,6 +871,7 @@ describe('The ChatSagas,', () => {
conversationId,
directLine,
userId,
restartConversationOption: chat.restartConversationOption,
})
)
);
Expand Down
1 change: 1 addition & 0 deletions packages/app/client/src/state/sagas/chatSagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ export class ChatSagas {
speechKey: chat.speechKey,
speechRegion: chat.speechRegion,
userId,
restartConversationOption: chat.restartConversationOption,
})
);

Expand Down

0 comments on commit 47c8349

Please sign in to comment.