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

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

Merge pull request #3920 from nextcloud/backport/3918/stable3.0

[stable3.0] Fix: Inconsistencies due to ALTREP parameter
parents 2cb2169e 88645fdd
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -311,6 +311,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
	},