From 56a4b731dde513d92cf03c46fb92c46d615e24bc Mon Sep 17 00:00:00 2001
From: Wolfgang Sourdeau
Date: Fri, 8 Feb 2008 21:45:51 +0000
Subject: [PATCH] Monotone-Parent: 8ae93518118d807510323d91a34585fa1f15364a
Monotone-Revision: cb716868d66e0696f2494d1de89518083646d191
Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-02-08T21:45:51
Monotone-Branch: ca.inverse.sogo
---
ChangeLog | 5 ++++
UI/MailPartViewers/UIxMailPartICalViewer.m | 10 ++++++++
.../MailPartViewers/UIxMailPartICalViewer.wox | 25 +++++++++++--------
3 files changed, 29 insertions(+), 11 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8cd7fe1ac..f41a82719 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-02-08 Wolfgang Sourdeau
+ * UI/MailPartViewers/UIxMailPartICalViewer.m
+ ([UIxMailPartICalViewer -currentUserAttendee]): new method that
+ returns the current user as an attendee representation in the
+ displayed event, if found.
+
* SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount
-_urlHostString]): replace "@" with %40 AFTER invoking
stringByEscapingURL.
diff --git a/UI/MailPartViewers/UIxMailPartICalViewer.m b/UI/MailPartViewers/UIxMailPartICalViewer.m
index 737e17d27..66df01d20 100644
--- a/UI/MailPartViewers/UIxMailPartICalViewer.m
+++ b/UI/MailPartViewers/UIxMailPartICalViewer.m
@@ -39,6 +39,7 @@
#import
#import
+#import
#import
#import
#import
@@ -349,6 +350,15 @@
return [attendees objectAtIndex:0];
}
+- (iCalPerson *) currentUserAttendee
+{
+ iCalPerson *currentUser;
+
+ currentUser = [[self storedEvent] findParticipant: [context activeUser]];
+
+ return currentUser;
+}
+
- (iCalPerson *) storedReplyAttendee
{
/*
diff --git a/UI/Templates/MailPartViewers/UIxMailPartICalViewer.wox b/UI/Templates/MailPartViewers/UIxMailPartICalViewer.wox
index e6a9771d0..d4f58af6e 100644
--- a/UI/Templates/MailPartViewers/UIxMailPartICalViewer.wox
+++ b/UI/Templates/MailPartViewers/UIxMailPartICalViewer.wox
@@ -39,21 +39,24 @@
-
-
+
+
+
+
-
-
- |
-
-
-
+
+
+
+ |
+
+