If it's on HTC check ur phones do not disturb settings. In settings , sounds and notifications, there's a bit that let's u configure this. U set it here and can switch it on and off also via the volume select on ur phone. When u hold up or down volume ull see do not disturb ( underneath says off on priority.