Call to _send_queue_mail only when registration is not on queue and before cancelling it
Closes #448 (closed) and #447 (closed)
Previous behaviour
Steps to reproduce:
- Create event with max participants
- Add event and multiple registrations exceeding max participants
- Cancel registration on the queue in the frontend
- Mail sent to someone
- Cancel registration not on the queue in the frontend
- Mail sent to the wrong person
New behaviour
Steps to validate that it works:
- Create event with max participants
- Add event and multiple registrations exceeding max participants
- Cancel registration on the queue in the frontend
- No mail sent
- Cancel registration not on the queue in the frontend
- Mail sent to the right person
Edited by Sébastiaan Versteeg