Chat filtering not being applied on a string containing a JSON

edited August 2022 in Photon Chat


I'm trying the chat solution with the Community Sift (filter) integration.

The filter worked great until I started sending more complex messages (A custom class with the time the message was sent).

In order to be able to send these messages, I need to register them on PhotonPeer.RegisterType(...) which will end sending a byte[] through the chat service.

I understand that if I send a byte[] the profanity filter won't apply to it, so I decided to send just a string with my class serialized as a JSON, hoping the filter would run on it. but it doesn't.



Do you know why the filter is not being applied there? Do you think there's another workaround for this? 


Best Answer