From 25a30d63a56f7edd4941c4c8af8e4c1c8d40c0f7 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Mon, 7 Aug 2017 12:27:34 -0700 Subject: [PATCH] A blocked contact doesn't necessarily have to be a number // FREEBIE --- .../securesms/jobs/MultiDeviceBlockedUpdateJob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/jobs/MultiDeviceBlockedUpdateJob.java b/src/org/thoughtcrime/securesms/jobs/MultiDeviceBlockedUpdateJob.java index 84194c0aee..67ac8e4036 100644 --- a/src/org/thoughtcrime/securesms/jobs/MultiDeviceBlockedUpdateJob.java +++ b/src/org/thoughtcrime/securesms/jobs/MultiDeviceBlockedUpdateJob.java @@ -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()); } }