Turning off the profanity filter per user

Hi,
We are unable to find the where to toggle the profanity filter on a per user basis, i.e. how to we allow users to turn off profanity filtering for themselves?

Answers

  • JohnTubeJohnTube mod
    edited April 12
    Hi @Geminior,

    Thank you for choosing Photon!

    You can't toggle chat profanity filter per user.
    You can implement a custom logic however to send messages with special format for users who should not be filtered to ignore the filtering. You should also send the user status (filtered or not) in the message itself I think. This should work with any message structure other than plain text.

    For instance:
    JSON:
    for filtered users:
    string msg = @"{""msg"":""message with bad words"", ""userFiltered"":true}";
    for ignored users:
    string msg = @"{""msgSkipped"":""message with bad words"", ""userFiltered"":false}";
Sign In or Register to comment.