[Pkg-owncloud-commits] [php-sabre-vobject] 05/43: iOS inbox fix. tests incomplete
David Prévot
taffit at moszumanska.debian.org
Fri Oct 10 14:16:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 2ce60d0e2c760fc4f0f1a34259b006bf8faeb0f5
Author: Dominik Tobschall <dominik at fruux.com>
Date: Thu Sep 25 20:19:09 2014 +0200
iOS inbox fix. tests incomplete
---
lib/ITip/Broker.php | 9 ++++++++-
tests/VObject/ITip/BrokerNewEventTest.php | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/lib/ITip/Broker.php b/lib/ITip/Broker.php
index cdba2b0..c96ee31 100644
--- a/lib/ITip/Broker.php
+++ b/lib/ITip/Broker.php
@@ -540,7 +540,7 @@ class Broker {
}
// We need to find out that this change is significant. If it's
- // not, systems may op to not send messages.
+ // not, systems may opt to not send messages.
//
// We do this based on the 'significantChangeHash' which is
// some value that changes if there's a certain set of
@@ -587,6 +587,13 @@ class Broker {
foreach($currentEvent->ATTENDEE as $attendee) {
unset($attendee['SCHEDULE-FORCE-SEND']);
unset($attendee['SCHEDULE-STATUS']);
+
+ // We're adding PARTSTAT=NEEDS-ACTION to ensure that
+ // iOS shows an "Inbox Item"
+ if (!isset($attendee['PARTSTAT'])) {
+ $attendee['PARTSTAT'] = 'NEEDS-ACTION';
+ }
+
}
}
diff --git a/tests/VObject/ITip/BrokerNewEventTest.php b/tests/VObject/ITip/BrokerNewEventTest.php
index 574bb78..97cb812 100644
--- a/tests/VObject/ITip/BrokerNewEventTest.php
+++ b/tests/VObject/ITip/BrokerNewEventTest.php
@@ -58,7 +58,7 @@ BEGIN:VEVENT
UID:foobar
DTSTART:20140811T220000Z
ORGANIZER;CN=Strunk:mailto:strunk at example.org
-ATTENDEE;CN=White:mailto:white at example.org
+ATTENDEE;CN=White;PARTSTAT=NEEDS-ACTION:mailto:white at example.org
END:VEVENT
END:VCALENDAR
ICS;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list