amazon-connect / amazon-connect-chatjs

Amazon Connect ChatJS - a browser-based contact center integration API for Chat on the Agent and Customer side.
https://docs.aws.amazon.com/connect/latest/adminguide/what-is-amazon-connect.html
Apache License 2.0
91 stars 53 forks source link

Add checks in chatController before making API calls #186

Closed mliao95 closed 11 months ago

mliao95 commented 12 months ago

Issue #, if available:

Closes #129, #126

Description of changes:

This change adds safeguards to multiple ChatController methods to avoid unnecessary API calls.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

mliao95 commented 11 months ago

LGTM, would this needed to be added to CHANGELOG for npm? Or we just copy/paste commit when publishing whenever the next publish happens

This change should ideally not impact the usage or functionality of chatjs, so copying and pasting the commit on next publish should be fine.