Skip to content

Commit

Permalink
Save vCards using the correct syntax for its version
Browse files Browse the repository at this point in the history
Previously, vCards were always serialised in vCard 4.0
syntax, even if the vCard version was actually set to
something else.

Signed-off-by: Christian Kraus <hanzi@hanzi.cc>
  • Loading branch information
hanzi committed Jan 6, 2020
1 parent 438e83e commit 16001ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ const actions = {
rev.fromUnixTime(Date.now() / 1000)
contact.rev = rev

const vData = ICAL.stringify(contact.vCard.jCal)
const vData = contact.vCard.toString()

// if no dav key, contact does not exists on server
if (!contact.dav) {
Expand Down

0 comments on commit 16001ab

Please sign in to comment.