Ignore empty profile fetches in RefreshOwnProfileJob.

This commit is contained in:
Greyson Parrelli
2022-04-27 14:13:09 -04:00
parent 3f1abe05fc
commit 8bb1b2d596
3 changed files with 18 additions and 3 deletions

View File

@@ -151,6 +151,7 @@ public class RecipientUtil {
if (!isBlockable(recipient)) {
throw new AssertionError("Recipient is not blockable!");
}
Log.w(TAG, "Blocking " + recipient.getId() + " (group: " + recipient.isGroup() + ")");
recipient = recipient.resolve();
@@ -177,6 +178,7 @@ public class RecipientUtil {
if (!isBlockable(recipient)) {
throw new AssertionError("Recipient is not blockable!");
}
Log.i(TAG, "Unblocking " + recipient.getId() + " (group: " + recipient.isGroup() + ")");
SignalDatabase.recipients().setBlocked(recipient.getId(), false);
SignalDatabase.recipients().setProfileSharing(recipient.getId(), true);