I completely agree with the name change of the variable, but I don't think that this line should be added!
By adding `|| attachmentsView.classList.contains('hidden')`, won't `wasAnotherViewVisible` be true even when the thumbnailView is already visible?