In a call ahead of House speaker Nancy Pelosi’s visit to Taiwan, Chinese leader Xi Jinping indicated that Beijing had no intention of going to war, according to people close to China’s decision-making.