private void UpdateDisplayNames(PrivacyWrapper sub) { userMapping.Clear(); sub.UpdateDisplayNames(userMapping); blackList.Clear(); var updatedBlacklist = WrapBlackList(Globals.conversationDetails.blacklist); foreach (var user in updatedBlacklist) { blackList.Add(user); } }
private List<PrivacyWrapper> WrapSubmissions(List<TargettedSubmission> submissions) { var privateSubmissions = new List<PrivacyWrapper>(); foreach (var sub in submissions) { var privSub = new PrivacyWrapper(sub, userMapping); privateSubmissions.Add(privSub); } return privateSubmissions; }