Immunity and infectivity in covid-19