mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Fix phone number format crash.
This commit is contained in:
committed by
Greyson Parrelli
parent
a17fd447a7
commit
8c34357cc6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user