Qing: add the switch to control the sending message action.