Skip to content
Merged
Changes from all commits
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
8 changes: 8 additions & 0 deletions src/store/calendarObjectInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down