Block Buddypress private messages to certain membership

Hi, i tried blocking the ability of sending messages to certain membership but isn't work, i can send messages with every user.
What can it be?
Thanks!