mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-19 10:08:12 +00:00
Monotone-Parent: 5f2a3e7eefe739c0e656450e9cc85846e27c80b8
Monotone-Revision: 3239b46c1626108a2b1a3d6cab30ae4c9bd6a731 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-13T22:38:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
8041818572
commit
d5d78c5f79
20 files changed
+415
-102
No files matched your search
@@ -31,6 +31,7 @@
|
||||
#import <NGCards/iCalPerson.h>
|
||||
|
||||
#import <SoObjects/SOGo/LDAPUserManager.h>
|
||||
#import <SoObjects/SOGo/NSArray+Utilities.h>
|
||||
#import <SoObjects/SOGo/SOGoObject.h>
|
||||
#import <SoObjects/SOGo/SOGoPermissions.h>
|
||||
#import <SoObjects/SOGo/WORequest+SOGo.h>
|
||||
@@ -308,23 +309,33 @@
|
||||
if ([self sendEMailNotifications]
|
||||
&& [self _aptIsStillRelevant: newApt])
|
||||
{
|
||||
iCalEvent *requestApt;
|
||||
|
||||
requestApt = [newApt copy];
|
||||
[(iCalCalendar *) [requestApt parent] setMethod: @"request"];
|
||||
attendees
|
||||
= [NSMutableArray arrayWithArray: [changes insertedAttendees]];
|
||||
[attendees removePerson: organizer];
|
||||
[self sendEMailUsingTemplateNamed: @"Invitation"
|
||||
forOldObject: nil
|
||||
andNewObject: newApt
|
||||
andNewObject: requestApt
|
||||
toAttendees: attendees];
|
||||
[requestApt release];
|
||||
|
||||
if (updateForcesReconsider)
|
||||
{
|
||||
iCalEvent *updatedApt;
|
||||
|
||||
updatedApt = [newApt copy];
|
||||
[(iCalCalendar *) [updatedApt parent] setMethod: @"request"];
|
||||
attendees = [NSMutableArray arrayWithArray:[newApt attendees]];
|
||||
[attendees removeObjectsInArray:[changes insertedAttendees]];
|
||||
[attendees removePerson:organizer];
|
||||
[self sendEMailUsingTemplateNamed: @"Update"
|
||||
forOldObject: oldApt
|
||||
andNewObject: newApt
|
||||
andNewObject: updatedApt
|
||||
toAttendees: attendees];
|
||||
[updatedApt release];
|
||||
}
|
||||
|
||||
attendees
|
||||
|
||||
Reference in new issue
Block a user