mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-30 02:37:16 +00:00
Improved handling of notifications and participation change updates. Added comments to the code.
Monotone-Parent: 17e3e8707a2ae061fd0c4184a32cd23a97af96ba Monotone-Revision: 6fac49c5eccc3f49ff214ee3fa7e0df6f166f18d Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2008-11-10T15:38:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -583,6 +583,7 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID)
|
||||
|
||||
#warning fix this when sendEmailUsing blabla has been cleaned up
|
||||
- (void) sendIMIPReplyForEvent: (iCalRepeatableEntityObject *) event
|
||||
from: (SOGoUser *) from
|
||||
to: (iCalPerson *) recipient
|
||||
{
|
||||
NSString *pageName, *language, *mailDate, *email;
|
||||
@@ -602,7 +603,8 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID)
|
||||
/* get WOApplication instance */
|
||||
app = [WOApplication application];
|
||||
|
||||
ownerUser = [SOGoUser userWithLogin: owner roles: nil];
|
||||
//ownerUser = [SOGoUser userWithLogin: owner roles: nil];
|
||||
ownerUser = from;
|
||||
language = [ownerUser language];
|
||||
/* create page name */
|
||||
pageName
|
||||
@@ -672,6 +674,7 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID)
|
||||
}
|
||||
|
||||
- (void) sendResponseToOrganizer: (iCalRepeatableEntityObject *) newComponent
|
||||
from: (SOGoUser *) from
|
||||
{
|
||||
iCalPerson *organizer, *attendee;
|
||||
iCalEvent *event;
|
||||
@@ -684,7 +687,7 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID)
|
||||
organizer = [event organizer];
|
||||
attendee = [event findParticipant: ownerUser];
|
||||
[event setAttendees: [NSArray arrayWithObject: attendee]];
|
||||
[self sendIMIPReplyForEvent: event to: organizer];
|
||||
[self sendIMIPReplyForEvent: event from: from to: organizer];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user