Fix bug because of which it was possible to send a message while an attachment was uploading