The latter consider Rabbi Dovber Schneuri (the oldest son of Rabbi Schneur Zalman) the second rebbe.
Those who hold a different view consider Rabbi Dovber Schneuri, the oldest son of Rabbi Schneur Zalman, to be the second leader.