No, Corbyn was never foreign secretary. He was a backbencher who only met with a side he agreed with, Lammy is foreign secretary, so obviously has to meet with foreign leaders and did with both sides.
It’d be hypocritical if I criticised Corbyn for meeting with dodgy groups as foreign secretary, so I assume you have evidence of that.