Beispiel #1
0
 private bool onChatMessageBlockedReceived(ChatServiceEvents.ChatMessageBlockedReceived evt)
 {
     if (isSpeechBubbleActive(base.localSessionId))
     {
         WorldSpeechBubble speechBubble = getSpeechBubble(base.localSessionId);
         if (speechBubble != null)
         {
             speechBubble.SetChatBlocked(base.localSessionId);
         }
     }
     return(false);
 }
        private bool onChatMessageBlockedReceived(ChatServiceEvents.ChatMessageBlockedReceived evt)
        {
            int chatAwaitingModerationBlockDataListIndex = getChatAwaitingModerationBlockDataListIndex(evt.SessionId);

            if (chatAwaitingModerationBlockDataListIndex != -1)
            {
                fullScreenChatBlockDataList.RemoveAt(chatAwaitingModerationBlockDataListIndex);
                layoutElementPool.RemoveElement(chatAwaitingModerationBlockDataListIndex);
            }
            addChatMessage(dataEntityCollection.LocalPlayerSessionId, "", dataEntityCollection.LocalPlayerHandle, isChatActivity: false, isAwaitingModeration: false, isChatBlocked: true);
            return(false);
        }