You need to use the past perfect when the order of events is not clear. There is no doubt that something that happened "previously" occurred before, so the past perfect is not needed to make the sequence clear, nor is it wrong to include. The two sentences mean exactly the same thing.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.