caldav: fix validation error when VTIMEZONE is after VEVENT

This commit is contained in:
Krystian Chachuła 2022-09-14 19:42:35 +02:00 committed by Simon Ser
parent dc63df9058
commit 6f22a649ac

View File

@ -54,7 +54,7 @@ func ValidateCalendarObject(cal *ical.Calendar) (eventType string, uid string, e
if uid == "" {
uid = compUID
}
if uid != compUID {
if compUID != "" && uid != compUID {
return "", "", fmt.Errorf("conflicting UID values in calendar: %s, %s", uid, compUID)
}
}