Function for getting all active dialogues