mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-22 02:36:55 +00:00
Fix crash if you've been unregistered for couple months.
This commit is contained in:
@@ -1970,6 +1970,12 @@ public class ConversationParentFragment extends Fragment
|
||||
final SettableFuture<Boolean> future = new SettableFuture<>();
|
||||
final Context context = requireContext().getApplicationContext();
|
||||
|
||||
if (SignalStore.account().getAci() == null || SignalStore.account().getPni() == null) {
|
||||
Log.w(TAG, "Not registered! Skipping initializeIdentityRecords()");
|
||||
future.set(false);
|
||||
return future;
|
||||
}
|
||||
|
||||
new AsyncTask<Recipient, Void, Pair<IdentityRecordList, String>>() {
|
||||
@Override
|
||||
protected @NonNull Pair<IdentityRecordList, String> doInBackground(Recipient... params) {
|
||||
|
||||
Reference in New Issue
Block a user