People said this 20 years ago. We've already started to see the CCP losing ground (see HK), and I'm quite bearish on the Party going forward. Jinping is 67, and I expect to see a major power struggle which will leave the Chinese Communist Party crippled when he dies.
How is violating the Sino-British Joint Declaration and getting away with it "losing ground"? The Hong Kong protests failed and Hongkongers now have less freedom than before.
I don't think they got away with much. Even if foreign investment rebounds in HK, Western complacency toward China will not find its voice again for many decades, and in that time, every Chinese treaty negotiation will be viewed as a bad-faith caricature of real diplomacy.
[0] https://unctad.org/system/files/official-document/wir2020_en...
HK they won easily. Western countries like UK and especially Europe are completely useless. Only the US can coordinate and shore up a coordinated response against China.