Mattermost marking users "offline" when they are "away"

Strangely enough the issue re-appeared a few days ago. It was working fine after switching to one of the standard templates, but now the status shows as offline again, when the window is minimized for a while.