mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 14:13:38 +00:00
Disable group updates for now
This commit is contained in:
parent
67889489e9
commit
8a6559b1fe
@ -253,11 +253,13 @@ public class PushGroupSendJob extends PushSendJob implements InjectableType {
|
|||||||
SignalServiceDataMessage groupDataMessage = SignalServiceDataMessage.newBuilder()
|
SignalServiceDataMessage groupDataMessage = SignalServiceDataMessage.newBuilder()
|
||||||
.withTimestamp(message.getSentTimeMillis())
|
.withTimestamp(message.getSentTimeMillis())
|
||||||
.withExpiration(message.getRecipient().getExpireMessages())
|
.withExpiration(message.getRecipient().getExpireMessages())
|
||||||
.withBody(message.getBody())
|
|
||||||
.asGroupMessage(group)
|
.asGroupMessage(group)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
return messageSender.sendMessage(messageId, addresses, unidentifiedAccess, groupDataMessage);
|
// Loki - Disable group updates for now
|
||||||
|
List<SendMessageResult> results = new ArrayList<>();
|
||||||
|
for (Address destination : destinations) results.add(SendMessageResult.success(new SignalServiceAddress(destination.toPhoneString()), false, false));
|
||||||
|
return results;
|
||||||
} else {
|
} else {
|
||||||
SignalServiceGroup group = new SignalServiceGroup(GroupUtil.getDecodedId(groupId));
|
SignalServiceGroup group = new SignalServiceGroup(GroupUtil.getDecodedId(groupId));
|
||||||
SignalServiceDataMessage groupMessage = SignalServiceDataMessage.newBuilder()
|
SignalServiceDataMessage groupMessage = SignalServiceDataMessage.newBuilder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user