Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
remove altrep parameter upon description update
Signed-off-by: Maximilian Martin <[email protected]>
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
max65482 authored and st3iny committed Jan 28, 2022
commit 6df7166bbd0cbef222f6fad22be84196d35e1e1b
12 changes: 12 additions & 0 deletions src/store/calendarObjectInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down