China’s top diplomat was meeting with Iran’s foreign minister, the first senior Iranian official to visit Beijing since the war began.