kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix crash if you've been unregistered for couple months.
rodzic
cb66996407
commit
1b404cef34
|
@ -1970,6 +1970,12 @@ public class ConversationParentFragment extends Fragment
|
||||||
final SettableFuture<Boolean> future = new SettableFuture<>();
|
final SettableFuture<Boolean> future = new SettableFuture<>();
|
||||||
final Context context = requireContext().getApplicationContext();
|
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>>() {
|
new AsyncTask<Recipient, Void, Pair<IdentityRecordList, String>>() {
|
||||||
@Override
|
@Override
|
||||||
protected @NonNull Pair<IdentityRecordList, String> doInBackground(Recipient... params) {
|
protected @NonNull Pair<IdentityRecordList, String> doInBackground(Recipient... params) {
|
||||||
|
|
Ładowanie…
Reference in New Issue