Only call hide if not showing

Test Plan:
Had 2 panes open with messages in them, and toggled between them.