Because there is already setMessageIsStreaming inside the handleSendMessage and into fetchChat, when the setMessageIsStreaming(false) inside the fetchChat changed the status but there was still running inside our call, i remove it.
Also added the await in 2 calls.
And a minor change regarding the hard coded url inside the delete/upload file
Because there is already setMessageIsStreaming inside the handleSendMessage and into fetchChat, when the setMessageIsStreaming(false) inside the fetchChat changed the status but there was still running inside our call, i remove it.
Also added the await in 2 calls.
And a minor change regarding the hard coded url inside the delete/upload file