Listen on join button click from pre-meeting room (lobby)

I want to do some stuff after a user joins from lobby, something like
jitsiApi.on ‘joinFromLobby’, function() { … }