From fdabc48820ff07676c9eacfecd79f1ea520cd490 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 2 Dec 2008 12:27:41 +0000 Subject: [PATCH] Minor fix in the SENT-BY handling. Monotone-Parent: 694105995f89f2830e19da5ab10400813c23741f Monotone-Revision: 8a7076e816120408558e4add54151b80aeeb69d8 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2008-12-02T12:27:41 Monotone-Branch: ca.inverse.sogo --- UI/MailPartViewers/UIxMailPartICalActions.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/UI/MailPartViewers/UIxMailPartICalActions.m b/UI/MailPartViewers/UIxMailPartICalActions.m index 1ce6137c7..ad506bea0 100644 --- a/UI/MailPartViewers/UIxMailPartICalActions.m +++ b/UI/MailPartViewers/UIxMailPartICalActions.m @@ -203,7 +203,14 @@ [otherAttendee addAttribute: @"SENT-BY" value: [NSString stringWithFormat: @"\"MAILTO:%@\"", currentEmail]]; } - + else + { + // We must REMOVE any SENT-BY here. This is important since if A accepted + // the event for B and then, B changes by himself his participation status, + // we don't want to keep the previous SENT-BY attribute there. + [(NSMutableDictionary *)[otherAttendee attributes] removeObjectForKey: @"SENT-BY"]; + } + iCalString = [[event parent] versitString]; [eventObject saveContentString: iCalString]; }