On a model of thermoviscoelasticity of Jeffreys–Oldroyd type