Former Chelsea goalkeeper Edouard Mendy has revealed he held talks with new Senegal coach Patrick Vieira before he made the decision to retire from national team duties.