mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 00:17:27 +00:00
@@ -297,6 +297,11 @@ public class DirectoryHelper {
|
|||||||
boolean removeMissing,
|
boolean removeMissing,
|
||||||
@NonNull Map<String, String> rewrites)
|
@NonNull Map<String, String> rewrites)
|
||||||
{
|
{
|
||||||
|
if (!Permissions.hasAll(context, Manifest.permission.READ_CONTACTS, Manifest.permission.WRITE_CONTACTS)) {
|
||||||
|
Log.w(TAG, "[updateContactsDatabase] No contact permissions. Skipping.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
AccountHolder account = getOrCreateSystemAccount(context);
|
AccountHolder account = getOrCreateSystemAccount(context);
|
||||||
|
|
||||||
if (account == null) {
|
if (account == null) {
|
||||||
|
Reference in New Issue
Block a user