A Wiener lemma for the discrete Heisenberg group