From 123b8b906cce08a1020c7d960e569cc56cabd349 Mon Sep 17 00:00:00 2001 From: Thorsten Claus Date: Thu, 17 Jun 2021 10:26:39 +0200 Subject: [PATCH] 8106 set share status in contacts --- lib/archive_importer/contact_importer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/archive_importer/contact_importer.rb b/lib/archive_importer/contact_importer.rb index 492375691..b64dfe7b7 100644 --- a/lib/archive_importer/contact_importer.rb +++ b/lib/archive_importer/contact_importer.rb @@ -34,7 +34,7 @@ class ArchiveImporter def create_contact person = Person.by_account_identifier(json.fetch("account_id")) - user.contacts.create!(person_id: person.id, sharing: false, receiving: json.fetch("receiving")) + user.contacts.create!(person_id: person.id, sharing: json.fetch("sharing"), receiving: json.fetch("receiving")) end end end