Feature/mob 2551 swa integration 1

loginSuccess may be called if user is logging in from preferences (at chat startup) - in that case loginDialog = null