How to set qq to prevent strangers from sending messages?

How to set QQ to prevent strangers from sending messages;

Tool raw materials

QQ8.9.73

OPPOk 10

1, open QQ first and then click on your avatar, as shown in the figure below:

2. Click Settings again, as shown in the figure below:

3. Click the message notification again, as shown in the figure below:

4. As shown in the figure below, click Temporary Session Settings again:

5. Finally, click to close the switch behind the temporary session settings, as shown in the following figure:

The setting is successful, but friends who can't can follow the operation and try.