/// <summary> Метод добавления собеседников в чат </summary> public void InviteAndRevokeChatMembers(List <ModelContact> membersToInvite, List <ModelContact> membersToRevoke) { if (DataSourceChat.InviteAndRevokeChatMembers(CurrentModelChat, membersToInvite, membersToRevoke)) { MarkReadModelMessage(); } }
/// <summary> Метод удаления собеседника из чата </summary> private void RemoveFromChatContactModel(ModelContact mc) { if (DataSourceChat.InviteAndRevokeChatMembers(CurrentModelChat, new List <ModelContact>(), new List <ModelContact> { mc })) { /* * if (CurrentModelChat.ListModelContactNotMe.Count == 1) * { * CurrentModelChat.Title = LocalizationApp.GetInstance().GetValueByKey(@"ModelChatMessage_Untitled"); * }*/ MarkReadModelMessage(); } }