From 8a6559b1feb903630b9917befbfcac28cad53177 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Fri, 9 Aug 2019 13:43:55 +1000 Subject: [PATCH] Disable group updates for now --- src/org/thoughtcrime/securesms/jobs/PushGroupSendJob.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/jobs/PushGroupSendJob.java b/src/org/thoughtcrime/securesms/jobs/PushGroupSendJob.java index 10f2f445da..81727a0a31 100644 --- a/src/org/thoughtcrime/securesms/jobs/PushGroupSendJob.java +++ b/src/org/thoughtcrime/securesms/jobs/PushGroupSendJob.java @@ -253,11 +253,13 @@ public class PushGroupSendJob extends PushSendJob implements InjectableType { SignalServiceDataMessage groupDataMessage = SignalServiceDataMessage.newBuilder() .withTimestamp(message.getSentTimeMillis()) .withExpiration(message.getRecipient().getExpireMessages()) - .withBody(message.getBody()) .asGroupMessage(group) .build(); - return messageSender.sendMessage(messageId, addresses, unidentifiedAccess, groupDataMessage); + // Loki - Disable group updates for now + List results = new ArrayList<>(); + for (Address destination : destinations) results.add(SendMessageResult.success(new SignalServiceAddress(destination.toPhoneString()), false, false)); + return results; } else { SignalServiceGroup group = new SignalServiceGroup(GroupUtil.getDecodedId(groupId)); SignalServiceDataMessage groupMessage = SignalServiceDataMessage.newBuilder()