fix(calendar): send modification notifications for tasks

This commit is contained in:
Francis Lachapelle
2021-10-25 15:27:01 -04:00
parent c07aeeffec
commit 1ccfa865bb
8 changed files with 85 additions and 33 deletions
+23 -1
View File
@@ -1,5 +1,5 @@
/*
Copyright (C) 2006-2014-2016 Inverse inc.
Copyright (C) 2006-2014-2021 Inverse inc.
This file is part of SOGo.
@@ -21,6 +21,7 @@
#import <Foundation/NSCalendarDate.h>
#import <NGObjWeb/NSException+HTTP.h>
#import <NGObjWeb/WORequest.h>
#import <NGObjWeb/WOResponse.h>
#import <NGObjWeb/WOContext+SoObjects.h>
@@ -65,6 +66,14 @@
baseVersion: (unsigned int) newVersion
{
NSException *ex;
iCalToDo *todo;
todo = (iCalToDo*)[theComponent firstChildWithTag: [self componentTag]];
[self sendReceiptEmailForObject: todo
addedAttendees: nil
deletedAttendees: nil
updatedAttendees: nil
operation: [self isNew] ? TaskCreated : TaskUpdated];
ex = [super saveComponent: theComponent baseVersion: newVersion];
[fullCalendar release];
@@ -111,6 +120,19 @@
}
- (NSException *) prepareDelete
{
iCalToDo *todo = [self component: NO secure: NO];
[self sendReceiptEmailForObject: todo
addedAttendees: nil
deletedAttendees: nil
updatedAttendees: nil
operation: TaskDeleted];
return [super prepareDelete];
}
- (id) PUTAction: (WOContext *) _ctx
{
iCalCalendar *rqCalendar;