Messaging Policies
Click Add
Create the policies and save, as shown below.
Screenshot of Student Chat disable policy
select the username
Accounts
Policies
Edit
Messaging policies
select the newly created policies and click Apply.
Screeshot of the policy to choose
Screenshot of the end result without chat facility