Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6df7166b authored by max65482's avatar max65482 Committed by Richard Steinmetz
Browse files

remove altrep parameter upon description update

parent 2cb2169e
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1518,6 +1518,18 @@ const actions = {
		const calendarObject = state.calendarObject

		if (eventComponent.isDirty()) {
			// ALTREP parameter is not set by NC calendar, but by CalDAV clients like Thunderbird.
			// To avoid inconsistencies, remove ALTREP parameter upon modification.
			const veventComponent = calendarObject.calendarComponent.getFirstComponent('VEVENT')
			if (veventComponent) {
				const descriptionProperty = veventComponent.getFirstProperty('Description')
				if (descriptionProperty) {
					if (descriptionProperty.hasParameter('ALTREP')) {
						descriptionProperty.deleteParameter('ALTREP')
					}
				}
			}

			const isForkedItem = eventComponent.primaryItem !== null
			let original = null
			let fork = null