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

Unverified Commit 2dc22803 authored by Richard Steinmetz's avatar Richard Steinmetz Committed by GitHub
Browse files

Merge pull request #3918 from max65482/fix_altrep

Fix: Inconsistencies due to ALTREP parameter
parents 4134f5c8 30469aa4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -320,6 +320,14 @@ const mutations = {
	 * @param {string} data.description New description to set
	 */
	changeDescription(state, { calendarObjectInstance, description }) {
		// ALTREP parameter is not set by NC calendar, but by CalDAV clients like Thunderbird.
		// To avoid inconsistencies, remove ALTREP parameter upon modification.
		const descriptionProperty = calendarObjectInstance.eventComponent.getFirstProperty('Description')
		if (descriptionProperty) {
			if (descriptionProperty.hasParameter('ALTREP')) {
				descriptionProperty.deleteParameter('ALTREP')
			}
		}
		calendarObjectInstance.eventComponent.description = description
		calendarObjectInstance.description = description
	},