The code you posted seems fine. Well, fine-ish. You're hiding the preloader before the message is uploaded. But your double-submit is probably coming from somewhere else, e.g., you calling send twice without realizing it.
↧
The code you posted seems fine. Well, fine-ish. You're hiding the preloader before the message is uploaded. But your double-submit is probably coming from somewhere else, e.g., you calling send twice without realizing it.