I couldn't test this, but please make the tests and let me know. Maybe only one change is needed regardless $invoice object, but just in case I added "true" force argument queueNewOrderEmail() - which can cause problems too in duplication of email sending, then we will just remove this argument.
I couldn't test this, but please make the tests and let me know. Maybe only one change is needed regardless $invoice object, but just in case I added "true" force argument queueNewOrderEmail() - which can cause problems too in duplication of email sending, then we will just remove this argument.