question

nosalt avatar image
nosalt asked

PlayFab Party Chat Moderation

Hi,

I am trying to enable chat moderation under Unity.

I had to change this method from private to public in PlayFabMultiplayerManager.cs:

public void SetTextChatOptions(PARTY_TEXT_CHAT_OPTIONS textChatOptions)
{
PartySucceeded(SDK.PartyChatControlSetTextChatOptions(_localChatControlHandle, textChatOptions, null));
}

Then I can enable it by

private void OnChatMessageReceived(object sender, PlayFabPlayer from, string message, ChatMessageType type)
{
PlayFabMultiplayerManager.Get().SetTextChatOptions(PartyCSharpSDK.PARTY_TEXT_CHAT_OPTIONS.PARTY_TEXT_CHAT_OPTIONS_FILTER_OFFENSIVE_TEXT);
Debug.Log(message);
}

but what I see that the first message come through without moderation, than anything I write later will be moderated out with "******"

Any idea how this moderation works? I can't find any usable documentation.

Thank you

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image Seth Du ♦ commented ·

It seems this text chat option is not supported in Unity SDK, feel free to send a thread on Feature Request forum --https://community.playfab.com/spaces/24/index.html

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.