fix(calendar): put valarm at the end of vevent block to satisfy outlook.office.com which is too lazy to follow the spec

This commit is contained in:
Hivert Quentin committed 2025-04-09 11:15:59 +02:00
1 parent 7c59e6b3bf
commit 148fab9409
2 files changed
+17 -6

No files matched your search

@@ -355,12 +355,12 @@ NSNumber *iCalDistantFutureNumber = nil;
if ([o isKindOfClass: [NSArray class]])
[self _setAttendees: o];
o = [data objectForKey: @"alarm"];
if ([o isKindOfClass: [NSDictionary class]])
{
owner = [data objectForKey: @"owner"];
[self _setAlarm: o forOwner: owner];
}
// o = [data objectForKey: @"alarm"];
// if ([o isKindOfClass: [NSDictionary class]])
// {
// owner = [data objectForKey: @"owner"];
// [self _setAlarm: o forOwner: owner];
// }
// Other attributes depend on the client object and therefore are set in [UIxComponentEditor setAttributes:]:
// - organizer & "created-by"