private void HandleChannelInvitation_NotifyReceivedSuggestionAdded(RPCContext context) { SuggestionAddedNotification suggestionAddedNotification = SuggestionAddedNotification.ParseFrom(context.Payload); EntityId entityId = (!suggestionAddedNotification.Suggestion.HasChannelId) ? null : suggestionAddedNotification.Suggestion.ChannelId; ChannelAPI.ChannelReferenceObject channelReferenceObject = this.GetChannelReferenceObject(entityId); if (channelReferenceObject == null) { base.ApiLog.LogError("HandleChannelInvitation_NotifyReceivedSuggestionAdded had unexpected traffic for channelId: " + entityId); return; } base.ApiLog.LogDebug("HandleChannelInvitation_NotifyReceivedSuggestionAdded: " + suggestionAddedNotification); if (this.m_receivedInviteRequests == null) { this.m_receivedInviteRequests = new Map <EntityId, List <Suggestion> >(); } List <Suggestion> list; if (!this.m_receivedInviteRequests.TryGetValue(entityId, out list)) { list = new List <Suggestion>(); this.m_receivedInviteRequests[entityId] = list; } if (list.IndexOf(suggestionAddedNotification.Suggestion) < 0) { list.Add(suggestionAddedNotification.Suggestion); } ChannelAPI.ChannelType channelType = channelReferenceObject.m_channelData.m_channelType; if (channelType == ChannelAPI.ChannelType.PARTY_CHANNEL) { this.m_battleNet.Party.ReceivedInviteRequestDelta(entityId, suggestionAddedNotification.Suggestion, default(uint?)); } }