// Token: 0x06002E9B RID: 11931 RVA: 0x0010A4EC File Offset: 0x001086EC private void DeleteConversationsOrItems(bool isPermanent) { DeleteItemInfo[] array = (DeleteItemInfo[])base.GetParameter("Itms"); OwaStoreObjectId[] array2 = (OwaStoreObjectId[])base.GetParameter("Cnvs"); if (array != null && array.Length > 0) { foreach (DeleteItemInfo deleteItemInfo in array) { if (!deleteItemInfo.OwaStoreObjectId.IsOtherMailbox && !deleteItemInfo.OwaStoreObjectId.IsPublic && deleteItemInfo.OwaStoreObjectId.IsConversationId) { return; } } base.InternalDelete(isPermanent, null); return; } if (array2 != null && array2.Length > 0) { OwaStoreObjectId owaStoreObjectId = (OwaStoreObjectId)base.GetParameter("fId"); OwaStoreObjectId[] localItemIds = ConversationUtilities.GetLocalItemIds(base.UserContext, array2, owaStoreObjectId); if (localItemIds.Length == 0) { return; } new List <OwaStoreObjectId>(); new List <OwaStoreObjectId>(); if (!Utilities.IsDefaultFolderId(base.UserContext, owaStoreObjectId, DefaultFolderType.DeletedItems) && !isPermanent) { OwaStoreObjectId[] array4 = localItemIds; int j = 0; while (j < array4.Length) { OwaStoreObjectId owaStoreObjectId2 = array4[j]; if (owaStoreObjectId2.StoreObjectId.ObjectType == StoreObjectType.MeetingRequest) { goto IL_FD; } if (owaStoreObjectId2.StoreObjectId.ObjectType == StoreObjectType.MeetingCancellation) { goto Block_12; } IL_10E: j++; continue; Block_12: try { IL_FD: MeetingUtilities.DeleteMeetingMessageCalendarItem(owaStoreObjectId2.StoreObjectId); } catch (ObjectNotFoundException) { } goto IL_10E; } } base.InternalDelete(isPermanent, localItemIds); } }
public void RemoveFromCalendar() { ExTraceGlobals.CalendarCallTracer.TraceDebug((long)this.GetHashCode(), "EditMeetingInviteEventHandler.RemoveFromCalendar"); OwaStoreObjectId owaStoreObjectId = (OwaStoreObjectId)base.GetParameter("Id"); MeetingUtilities.DeleteMeetingMessageCalendarItem(owaStoreObjectId.StoreObjectId); base.Delete(); }
public override void PermanentDelete() { ExTraceGlobals.CalendarCallTracer.TraceDebug((long)this.GetHashCode(), "EditMeetingInviteEventHandler.PermanentDelete"); OwaStoreObjectId owaStoreObjectId = (OwaStoreObjectId)base.GetParameter("Id"); StoreObjectType storeObjectType = (StoreObjectType)base.GetParameter("ItemType"); if (!owaStoreObjectId.IsPublic && (storeObjectType == StoreObjectType.MeetingRequest || storeObjectType == StoreObjectType.MeetingCancellation)) { MeetingUtilities.DeleteMeetingMessageCalendarItem(owaStoreObjectId.StoreObjectId); } else if (storeObjectType == StoreObjectType.CalendarItem || storeObjectType == StoreObjectType.CalendarItemOccurrence) { MeetingUtilities.DeleteCalendarItem(owaStoreObjectId.StoreObjectId, DeleteItemFlags.SoftDelete); return; } base.PermanentDelete(); }