Fix bug not sending leave event from phoenix.js client