Do not fetch profiles when unregistered.
This commit is contained in:
parent
03b65ce6dc
commit
d1982cbc0a
1 changed files with 5 additions and 0 deletions
|
@ -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<>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue