This new implementation allows the user to send several messages and gets them on a queue to avoid crashing the current run to the API, avoiding trying to add a new message to the thread before the answer from the API has actually returned, therefore not crashing the app. The messages are then sent 1 by 1 to the API as they were added to the queue all waiting for an answer from the API before being sent.
This new implementation allows the user to send several messages and gets them on a queue to avoid crashing the current run to the API, avoiding trying to add a new message to the thread before the answer from the API has actually returned, therefore not crashing the app. The messages are then sent 1 by 1 to the API as they were added to the queue all waiting for an answer from the API before being sent.