diff --git a/appinfo/app.php b/appinfo/app.php index 580ae434..396db4d1 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -61,8 +61,8 @@ if(\OCP\User::isLoggedIn()) { $app = new App($api->getUserId()); $addressBooks = $app->getAddressBooksForUser(); foreach($addressBooks as $addressBook) { - //if($addressBook->getBackend()->name === 'local') { + if($addressBook->isActive()) { \OCP\Contacts::registerAddressBook(new AddressbookProvider($addressBook)); - //} + } } }