Do not fetch profiles when unregistered.

fork-5.53.8
Greyson Parrelli 2021-05-06 19:08:41 -04:00
rodzic 03b65ce6dc
commit d1982cbc0a
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -237,6 +237,11 @@ public class RetrieveProfileJob extends BaseJob {
@Override
public void onRun() throws IOException, RetryLaterException {
if (!TextSecurePreferences.isPushRegistered(context)) {
Log.w(TAG, "Unregistered. Skipping.");
return;
}
Stopwatch stopwatch = new Stopwatch("RetrieveProfile");
RecipientDatabase recipientDatabase = DatabaseFactory.getRecipientDatabase(context);
Set<RecipientId> retries = new HashSet<>();