From dd51a36931d4ba450fb4a8d7fe5c1609892d25b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 4 Feb 2019 11:06:27 +0100 Subject: Add PRODID to new contacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/views/Contacts.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views') diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue index d9412555..19663370 100644 --- a/src/views/Contacts.vue +++ b/src/views/Contacts.vue @@ -265,7 +265,7 @@ export default { methods: { async newContact() { - let contact = new Contact('BEGIN:VCARD\nVERSION:4.0\nEND:VCARD', this.defaultAddressbook) + let contact = new Contact(`BEGIN:VCARD\nVERSION:4.0\nPRODID:-//Nextcloud Contacts v${oca_contacts.versionstring}\nEND:VCARD`, this.defaultAddressbook) const properties = rfcProps.properties(this) contact.fullName = t('contacts', 'New contact') // itterate over all properties (filter is not usable on objects and we need the key of the property) -- cgit v1.2.3