How to stop chat message from getting sent?

I want to stop a message from getting sent in the chat based on some criteria, but I can’t find any new posts or topics that include info that is still relevant.

If you’re using the new chat, just use the .OnIncomingMessage callback to set the TextChatMessageProperties.Text to a whitespace character and return it.

1 Like