Turning off the profanity filter per user

Options
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

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited April 2017
    Options
    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}";