You can disable the attention awareness feature that scans your face and determines you're looking at the iPhone X, which in turn lowers the ring volume on the device. With this feature turned off, the iPhone X will stop lowering the ring volume of calls automatically when you pick up the iPhone and look at it.