Fix phone number format crash.

This commit is contained in:
Cody Henthorne
2021-12-20 12:34:40 -05:00
committed by Greyson Parrelli
parent a17fd447a7
commit 8c34357cc6
3 changed files with 33 additions and 9 deletions

View File

@@ -41,6 +41,11 @@ public class ContactsSyncAdapter extends AbstractThreadedSyncAdapter {
Context context = getContext();
if (SignalStore.account().getE164() == null) {
Log.i(TAG, "No local number set, skipping all sync operations.");
return;
}
if (!SignalStore.account().isRegistered()) {
Log.i(TAG, "Not push registered. Just syncing contact info.");
DirectoryHelper.syncRecipientInfoWithSystemContacts(context);