Chat filtering not being applied on a string containing a JSON

Miguel
Miguel
edited August 2 in Photon Chat

Hi!

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.

example: 

 "{"_id":0,"_senderId":"3562676201555773452","_timestamp":1659432253,"_content":"fuck"}"

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

Thanks!

Best Answer

Answers