Shadow meeting Mephiles in Sonic X is just a rumor rather than something that actually happened in the series. So while it's a fun idea that circulates among fans, there's no canonical encounter to point to.