/// <summary> /// Checks the given parties and adds them to the collection, if not already there. /// /// Note that this method expects that the recipient is the bot. The sender could also be /// the bot, but that case is checked before adding the sender to the container. /// </summary> /// <param name="senderParty">The sender party (from).</param> /// <param name="recipientParty">The recipient party.</param> public void MakeSurePartiesAreTracked(Party senderParty, Party recipientParty) { // Store the bot identity, if not already stored RoutingDataManager.AddParty(recipientParty, false); // Check that the party who sent the message is not the bot if (!RoutingDataManager.GetBotParties().Contains(senderParty)) { // Store the user party, if not already stored RoutingDataManager.AddParty(senderParty); } }