"That that" spoken are two different sounding words so it makes sense. When it goes from verbal to written and I see it, I will almost always try to rephrase things to avoid that combo. It just jumps out as totally wrong.
I think it depends on if you want to emphasize something specifically or not. Second 'that' is the default it seems, but I first expected 'was' to be emphasized in this sentence