A blocked contact doesn't necessarily have to be a number

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-08-07 12:27:34 -07:00
parent 1c3ba4b675
commit 25a30d63a5

View file

@ -53,8 +53,8 @@ public class MultiDeviceBlockedUpdateJob extends MasterSecretJob implements Inje
Recipients recipients;
while ((recipients = reader.getNext()) != null) {
if (recipients.isSingleRecipient()) {
blocked.add(recipients.getPrimaryRecipient().getAddress().toPhoneString());
if (recipients.isSingleRecipient() && !recipients.isGroupRecipient()) {
blocked.add(recipients.getPrimaryRecipient().getAddress().serialize());
}
}