diff options
author | Johannes Zlattinger <johannes@zlattinger.net> | 2020-12-30 17:27:13 +0100 |
---|---|---|
committer | Johannes Zlattinger <johannes@zlattinger.net> | 2020-12-30 17:27:13 +0100 |
commit | be4d5fc78626fcfc2093e94f1ec1742ce234f180 (patch) | |
tree | 1200123b63f204b490eb9e6542f15ffbd4f62301 /src | |
parent | e7dfd07bf484f30db413f636fcd4518ae5fbc70f (diff) |
remove workaround for postal addresses containing commas because base issue has been fixed
Diffstat (limited to 'src')
-rw-r--r-- | src/services/updateDesignSet.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/services/updateDesignSet.js b/src/services/updateDesignSet.js index 0ad08139..33093f8f 100644 --- a/src/services/updateDesignSet.js +++ b/src/services/updateDesignSet.js @@ -23,32 +23,6 @@ import ICAL from 'ical.js' /** - * Fixes nextcloud/contacts#1009 that prevented editing of contacts if - * their address contained a comma. This is actually a bug in ical.js - * but it has not been fixed for some time now. - * - * This can be removed once https://github.com/mozilla-comm/ical.js/issues/386 - * has been resolved. - * - * @returns {Boolean} Whether or not the design set has been altered. - */ -const setLabelAsSingleValue = () => { - if ( - !ICAL.design.vcard.param.label - || ICAL.design.vcard.param.label.multiValue !== false - || !ICAL.design.vcard3.param.label - || ICAL.design.vcard3.param.label.multiValue !== false - ) { - ICAL.design.vcard.param.label = { multiValue: false } - ICAL.design.vcard3.param.label = { multiValue: false } - - return true - } - - return false -} - -/** * Prevents ical.js from adding 'VALUE=PHONE-NUMBER' in vCard 3.0. * While not wrong according to the RFC, there's a bug in sabreio/vobject (used * by Nextcloud Server) that prevents saving vCards with this parameters. @@ -99,7 +73,6 @@ const addGroupedProperties = vCard => { export default function(vCard) { let madeChanges = false - madeChanges |= setLabelAsSingleValue() madeChanges |= removePhoneNumberValueType() madeChanges |= addGroupedProperties(vCard) |