Use 'if' instead of 'show'

To remove inactive chat windows from the DOM