kopia lustrzana https://github.com/ryukoposting/Signal-Android
Do not fetch profiles when unregistered.
rodzic
03b65ce6dc
commit
d1982cbc0a
|
@ -237,6 +237,11 @@ public class RetrieveProfileJob extends BaseJob {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRun() throws IOException, RetryLaterException {
|
public void onRun() throws IOException, RetryLaterException {
|
||||||
|
if (!TextSecurePreferences.isPushRegistered(context)) {
|
||||||
|
Log.w(TAG, "Unregistered. Skipping.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Stopwatch stopwatch = new Stopwatch("RetrieveProfile");
|
Stopwatch stopwatch = new Stopwatch("RetrieveProfile");
|
||||||
RecipientDatabase recipientDatabase = DatabaseFactory.getRecipientDatabase(context);
|
RecipientDatabase recipientDatabase = DatabaseFactory.getRecipientDatabase(context);
|
||||||
Set<RecipientId> retries = new HashSet<>();
|
Set<RecipientId> retries = new HashSet<>();
|
||||||
|
|
Ładowanie…
Reference in New Issue