They're both correct, but the second one is the better read. Multiple past perfects in the same sentence tend to be cumbersome, and not much fun to read or listen to. I look at the past perfect as an optional tool for clarifying complex sequences.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.