mirror of
https://github.com/oxen-io/session-android.git
synced 2025-03-30 11:02:13 +00:00
Multi-device sending media message
This commit is contained in:
parent
8a3b4a6a14
commit
0bfa3c33c7
@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.jobs;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
|
import android.support.annotation.Nullable;
|
||||||
import android.support.annotation.WorkerThread;
|
import android.support.annotation.WorkerThread;
|
||||||
|
|
||||||
import com.annimon.stream.Stream;
|
import com.annimon.stream.Stream;
|
||||||
@ -56,23 +57,50 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
|
|
||||||
private static final String TAG = PushMediaSendJob.class.getSimpleName();
|
private static final String TAG = PushMediaSendJob.class.getSimpleName();
|
||||||
|
|
||||||
|
private static final String KEY_TEMPLATE_MESSAGE_ID = "template_message_id";
|
||||||
private static final String KEY_MESSAGE_ID = "message_id";
|
private static final String KEY_MESSAGE_ID = "message_id";
|
||||||
|
private static final String KEY_DESTINATION = "destination";
|
||||||
|
private static final String KEY_IS_FRIEND_REQUEST = "is_friend_request";
|
||||||
|
private static final String KEY_CUSTOM_FR_MESSAGE = "custom_friend_request_message";
|
||||||
|
|
||||||
@Inject SignalServiceMessageSender messageSender;
|
@Inject SignalServiceMessageSender messageSender;
|
||||||
|
|
||||||
private long messageId;
|
private long messageId; // The message id
|
||||||
|
private long templateMessageId; // The message id of the message to template this send job from
|
||||||
|
|
||||||
public PushMediaSendJob(long messageId, Address destination) {
|
// Loki - Multi-device
|
||||||
this(constructParameters(destination), messageId);
|
|
||||||
|
private Address destination; // Destination to check whether this is another device we're sending to
|
||||||
|
private boolean isFriendRequest; // Whether this is a friend request message
|
||||||
|
private String customFriendRequestMessage; // If this isn't set then we use the message body
|
||||||
|
|
||||||
|
public PushMediaSendJob(long messageId, Address destination) { this(messageId, messageId, destination); }
|
||||||
|
public PushMediaSendJob(long templateMessageId, long messageId, Address destination) { this(templateMessageId, messageId, destination, false, null); }
|
||||||
|
public PushMediaSendJob(long templateMessageId, long messageId, Address destination, boolean isFriendRequest, String customFriendRequestMessage) {
|
||||||
|
this(constructParameters(destination), templateMessageId, messageId, destination, isFriendRequest, customFriendRequestMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
private PushMediaSendJob(Job.Parameters parameters, long messageId) {
|
private PushMediaSendJob(@NonNull Job.Parameters parameters, long templateMessageId, long messageId, Address destination, boolean isFriendRequest, String customFriendRequestMessage) {
|
||||||
super(parameters);
|
super(parameters);
|
||||||
|
this.templateMessageId = templateMessageId;
|
||||||
this.messageId = messageId;
|
this.messageId = messageId;
|
||||||
|
this.destination = destination;
|
||||||
|
this.isFriendRequest = isFriendRequest;
|
||||||
|
this.customFriendRequestMessage = customFriendRequestMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
public static void enqueue(@NonNull Context context, @NonNull JobManager jobManager, long messageId, @NonNull Address destination) {
|
public static void enqueue(@NonNull Context context, @NonNull JobManager jobManager, long messageId, @NonNull Address destination) {
|
||||||
|
enqueue(context, jobManager, messageId, messageId, destination);
|
||||||
|
}
|
||||||
|
|
||||||
|
@WorkerThread
|
||||||
|
public static void enqueue(@NonNull Context context, @NonNull JobManager jobManager, long templateMessageId, long messageId, @NonNull Address destination) {
|
||||||
|
enqueue(context, jobManager, templateMessageId, messageId, destination, false, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@WorkerThread
|
||||||
|
public static void enqueue(@NonNull Context context, @NonNull JobManager jobManager, long templateMessageId, long messageId, @NonNull Address destination, Boolean isFriendRequest, @Nullable String customFriendRequestMessage) {
|
||||||
try {
|
try {
|
||||||
MmsDatabase database = DatabaseFactory.getMmsDatabase(context);
|
MmsDatabase database = DatabaseFactory.getMmsDatabase(context);
|
||||||
OutgoingMediaMessage message = database.getOutgoingMessage(messageId);
|
OutgoingMediaMessage message = database.getOutgoingMessage(messageId);
|
||||||
@ -86,10 +114,10 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
List<AttachmentUploadJob> attachmentJobs = Stream.of(attachments).map(a -> new AttachmentUploadJob(((DatabaseAttachment) a).getAttachmentId())).toList();
|
List<AttachmentUploadJob> attachmentJobs = Stream.of(attachments).map(a -> new AttachmentUploadJob(((DatabaseAttachment) a).getAttachmentId())).toList();
|
||||||
|
|
||||||
if (attachmentJobs.isEmpty()) {
|
if (attachmentJobs.isEmpty()) {
|
||||||
jobManager.add(new PushMediaSendJob(messageId, destination));
|
jobManager.add(new PushMediaSendJob(templateMessageId, messageId, destination, isFriendRequest, customFriendRequestMessage));
|
||||||
} else {
|
} else {
|
||||||
jobManager.startChain(attachmentJobs)
|
jobManager.startChain(attachmentJobs)
|
||||||
.then(new PushMediaSendJob(messageId, destination))
|
.then(new PushMediaSendJob(templateMessageId, messageId, destination, isFriendRequest, customFriendRequestMessage))
|
||||||
.enqueue();
|
.enqueue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +130,14 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NonNull Data serialize() {
|
public @NonNull Data serialize() {
|
||||||
return new Data.Builder().putLong(KEY_MESSAGE_ID, messageId).build();
|
Data.Builder builder = new Data.Builder()
|
||||||
|
.putLong(KEY_TEMPLATE_MESSAGE_ID, templateMessageId)
|
||||||
|
.putLong(KEY_MESSAGE_ID, messageId)
|
||||||
|
.putString(KEY_DESTINATION, destination.serialize())
|
||||||
|
.putBoolean(KEY_IS_FRIEND_REQUEST, isFriendRequest);
|
||||||
|
|
||||||
|
if (customFriendRequestMessage != null) { builder.putString(KEY_CUSTOM_FR_MESSAGE, customFriendRequestMessage); }
|
||||||
|
return builder.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -122,11 +157,9 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
{
|
{
|
||||||
ExpiringMessageManager expirationManager = ApplicationContext.getInstance(context).getExpiringMessageManager();
|
ExpiringMessageManager expirationManager = ApplicationContext.getInstance(context).getExpiringMessageManager();
|
||||||
MmsDatabase database = DatabaseFactory.getMmsDatabase(context);
|
MmsDatabase database = DatabaseFactory.getMmsDatabase(context);
|
||||||
OutgoingMediaMessage message = database.getOutgoingMessage(messageId);
|
OutgoingMediaMessage message = database.getOutgoingMessage(templateMessageId);
|
||||||
|
|
||||||
message.isFriendRequest = (DatabaseFactory.getLokiMessageDatabase(context).getFriendRequestStatus(messageId) == LokiMessageFriendRequestStatus.REQUEST_SENDING);
|
if (messageId >= 0 && database.isSent(messageId)) {
|
||||||
|
|
||||||
if (database.isSent(messageId)) {
|
|
||||||
warn(TAG, "Message " + messageId + " was already sent. Ignoring.");
|
warn(TAG, "Message " + messageId + " was already sent. Ignoring.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -134,15 +167,17 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
try {
|
try {
|
||||||
log(TAG, "Sending message: " + messageId);
|
log(TAG, "Sending message: " + messageId);
|
||||||
|
|
||||||
Recipient recipient = message.getRecipient().resolve();
|
Recipient recipient = Recipient.from(context, destination, false);
|
||||||
byte[] profileKey = recipient.getProfileKey();
|
byte[] profileKey = recipient.getProfileKey();
|
||||||
UnidentifiedAccessMode accessMode = recipient.getUnidentifiedAccessMode();
|
UnidentifiedAccessMode accessMode = recipient.getUnidentifiedAccessMode();
|
||||||
|
|
||||||
boolean unidentified = deliver(message);
|
boolean unidentified = deliver(message);
|
||||||
|
|
||||||
database.markAsSent(messageId, true);
|
if (messageId >= 0) {
|
||||||
markAttachmentsUploaded(messageId, message.getAttachments());
|
database.markAsSent(messageId, true);
|
||||||
database.markUnidentified(messageId, unidentified);
|
markAttachmentsUploaded(messageId, message.getAttachments());
|
||||||
|
database.markUnidentified(messageId, unidentified);
|
||||||
|
}
|
||||||
|
|
||||||
if (recipient.isLocalNumber()) {
|
if (recipient.isLocalNumber()) {
|
||||||
SyncMessageId id = new SyncMessageId(recipient.getAddress(), message.getSentTimeMillis());
|
SyncMessageId id = new SyncMessageId(recipient.getAddress(), message.getSentTimeMillis());
|
||||||
@ -163,7 +198,7 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message.getExpiresIn() > 0 && !message.isExpirationUpdate()) {
|
if (messageId > 0 && message.getExpiresIn() > 0 && !message.isExpirationUpdate()) {
|
||||||
database.markExpireStarted(messageId);
|
database.markExpireStarted(messageId);
|
||||||
expirationManager.scheduleDeletion(messageId, true, message.getExpiresIn());
|
expirationManager.scheduleDeletion(messageId, true, message.getExpiresIn());
|
||||||
}
|
}
|
||||||
@ -172,9 +207,11 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
|
|
||||||
} catch (InsecureFallbackApprovalException ifae) {
|
} catch (InsecureFallbackApprovalException ifae) {
|
||||||
warn(TAG, "Failure", ifae);
|
warn(TAG, "Failure", ifae);
|
||||||
database.markAsPendingInsecureSmsFallback(messageId);
|
if (messageId >= 0) {
|
||||||
notifyMediaMessageDeliveryFailed(context, messageId);
|
database.markAsPendingInsecureSmsFallback(messageId);
|
||||||
ApplicationContext.getInstance(context).getJobManager().add(new DirectoryRefreshJob(false));
|
notifyMediaMessageDeliveryFailed(context, messageId);
|
||||||
|
ApplicationContext.getInstance(context).getJobManager().add(new DirectoryRefreshJob(false));
|
||||||
|
}
|
||||||
} catch (UntrustedIdentityException uie) {
|
} catch (UntrustedIdentityException uie) {
|
||||||
warn(TAG, "Failure", uie);
|
warn(TAG, "Failure", uie);
|
||||||
database.addMismatchedIdentity(messageId, Address.fromSerialized(uie.getE164Number()), uie.getIdentityKey());
|
database.addMismatchedIdentity(messageId, Address.fromSerialized(uie.getE164Number()), uie.getIdentityKey());
|
||||||
@ -191,22 +228,19 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCanceled() {
|
public void onCanceled() {
|
||||||
DatabaseFactory.getMmsDatabase(context).markAsSentFailed(messageId);
|
if (messageId >= 0) {
|
||||||
notifyMediaMessageDeliveryFailed(context, messageId);
|
DatabaseFactory.getMmsDatabase(context).markAsSentFailed(messageId);
|
||||||
|
notifyMediaMessageDeliveryFailed(context, messageId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean deliver(OutgoingMediaMessage message)
|
private boolean deliver(OutgoingMediaMessage message)
|
||||||
throws RetryLaterException, InsecureFallbackApprovalException, UntrustedIdentityException,
|
throws RetryLaterException, InsecureFallbackApprovalException, UntrustedIdentityException,
|
||||||
UndeliverableMessageException
|
UndeliverableMessageException
|
||||||
{
|
{
|
||||||
if (message.getRecipient() == null) {
|
|
||||||
throw new UndeliverableMessageException("No destination address.");
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// rotateSenderCertificateIfNecessary();
|
Recipient recipient = Recipient.from(context, destination, false);
|
||||||
|
SignalServiceAddress address = getPushAddress(recipient.getAddress());
|
||||||
SignalServiceAddress address = getPushAddress(message.getRecipient().getAddress());
|
|
||||||
List<Attachment> attachments = Stream.of(message.getAttachments()).filterNot(Attachment::isSticker).toList();
|
List<Attachment> attachments = Stream.of(message.getAttachments()).filterNot(Attachment::isSticker).toList();
|
||||||
List<SignalServiceAttachment> serviceAttachments = getAttachmentPointersFor(attachments);
|
List<SignalServiceAttachment> serviceAttachments = getAttachmentPointersFor(attachments);
|
||||||
Optional<byte[]> profileKey = getProfileKey(message.getRecipient());
|
Optional<byte[]> profileKey = getProfileKey(message.getRecipient());
|
||||||
@ -216,15 +250,10 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
List<Preview> previews = getPreviewsFor(message);
|
List<Preview> previews = getPreviewsFor(message);
|
||||||
|
|
||||||
// Loki - Include a pre key bundle if the message is a friend request or an end session message
|
// Loki - Include a pre key bundle if the message is a friend request or an end session message
|
||||||
PreKeyBundle preKeyBundle;
|
PreKeyBundle preKeyBundle = isFriendRequest ? DatabaseFactory.getLokiPreKeyBundleDatabase(context).generatePreKeyBundle(address.getNumber()) : null;
|
||||||
if (message.isFriendRequest) {
|
String body = (isFriendRequest && customFriendRequestMessage != null) ? customFriendRequestMessage : message.getBody();
|
||||||
preKeyBundle = DatabaseFactory.getLokiPreKeyBundleDatabase(context).generatePreKeyBundle(address.getNumber());
|
|
||||||
} else {
|
|
||||||
preKeyBundle = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
SignalServiceDataMessage mediaMessage = SignalServiceDataMessage.newBuilder()
|
SignalServiceDataMessage mediaMessage = SignalServiceDataMessage.newBuilder()
|
||||||
.withBody(message.getBody())
|
.withBody(body)
|
||||||
.withAttachments(serviceAttachments)
|
.withAttachments(serviceAttachments)
|
||||||
.withTimestamp(message.getSentTimeMillis())
|
.withTimestamp(message.getSentTimeMillis())
|
||||||
.withExpiration((int)(message.getExpiresIn() / 1000))
|
.withExpiration((int)(message.getExpiresIn() / 1000))
|
||||||
@ -235,7 +264,7 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
.withPreviews(previews)
|
.withPreviews(previews)
|
||||||
.asExpirationUpdate(message.isExpirationUpdate())
|
.asExpirationUpdate(message.isExpirationUpdate())
|
||||||
.withPreKeyBundle(preKeyBundle)
|
.withPreKeyBundle(preKeyBundle)
|
||||||
.asFriendRequest(message.isFriendRequest)
|
.asFriendRequest(isFriendRequest)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
if (address.getNumber().equals(TextSecurePreferences.getLocalNumber(context))) {
|
if (address.getNumber().equals(TextSecurePreferences.getLocalNumber(context))) {
|
||||||
@ -245,7 +274,7 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
messageSender.sendMessage(messageId, syncMessage, syncAccess);
|
messageSender.sendMessage(messageId, syncMessage, syncAccess);
|
||||||
return syncAccess.isPresent();
|
return syncAccess.isPresent();
|
||||||
} else {
|
} else {
|
||||||
return messageSender.sendMessage(messageId, address, UnidentifiedAccessUtil.getAccessFor(context, message.getRecipient()), mediaMessage).getSuccess().isUnidentified();
|
return messageSender.sendMessage(messageId, address, UnidentifiedAccessUtil.getAccessFor(context, recipient), mediaMessage).getSuccess().isUnidentified();
|
||||||
}
|
}
|
||||||
} catch (UnregisteredUserException e) {
|
} catch (UnregisteredUserException e) {
|
||||||
warn(TAG, e);
|
warn(TAG, e);
|
||||||
@ -262,7 +291,12 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
|||||||
public static final class Factory implements Job.Factory<PushMediaSendJob> {
|
public static final class Factory implements Job.Factory<PushMediaSendJob> {
|
||||||
@Override
|
@Override
|
||||||
public @NonNull PushMediaSendJob create(@NonNull Parameters parameters, @NonNull Data data) {
|
public @NonNull PushMediaSendJob create(@NonNull Parameters parameters, @NonNull Data data) {
|
||||||
return new PushMediaSendJob(parameters, data.getLong(KEY_MESSAGE_ID));
|
long templateMessageID = data.getLong(KEY_TEMPLATE_MESSAGE_ID);
|
||||||
|
long messageID = data.getLong(KEY_MESSAGE_ID);
|
||||||
|
Address destination = Address.fromSerialized(data.getString(KEY_DESTINATION));
|
||||||
|
boolean isFriendRequest = data.getBoolean(KEY_IS_FRIEND_REQUEST);
|
||||||
|
String frMessage = data.hasString(KEY_CUSTOM_FR_MESSAGE) ? data.getString(KEY_CUSTOM_FR_MESSAGE) : null;
|
||||||
|
return new PushMediaSendJob(parameters, templateMessageID, messageID, destination, isFriendRequest, frMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,9 +53,9 @@ public class PushTextSendJob extends PushSendJob implements InjectableType {
|
|||||||
|
|
||||||
// Loki - Multi-device
|
// Loki - Multi-device
|
||||||
|
|
||||||
private Address destination = null; // Destination to check whether this is another device we're sending to
|
private Address destination; // Destination to check whether this is another device we're sending to
|
||||||
private boolean isFriendRequest = false; // Whether this is a friend request message
|
private boolean isFriendRequest; // Whether this is a friend request message
|
||||||
private String customFriendRequestMessage = null; // If this isn't set then we use the message body
|
private String customFriendRequestMessage; // If this isn't set then we use the message body
|
||||||
|
|
||||||
public PushTextSendJob(long messageId, Address destination) { this(messageId, messageId, destination); }
|
public PushTextSendJob(long messageId, Address destination) { this(messageId, messageId, destination); }
|
||||||
public PushTextSendJob(long templateMessageId, long messageId, Address destination) { this(templateMessageId, messageId, destination, false, null); }
|
public PushTextSendJob(long templateMessageId, long messageId, Address destination) { this(templateMessageId, messageId, destination, false, null); }
|
||||||
@ -117,7 +117,7 @@ public class PushTextSendJob extends PushSendJob implements InjectableType {
|
|||||||
byte[] profileKey = recipient.getProfileKey();
|
byte[] profileKey = recipient.getProfileKey();
|
||||||
UnidentifiedAccessMode accessMode = recipient.getUnidentifiedAccessMode();
|
UnidentifiedAccessMode accessMode = recipient.getUnidentifiedAccessMode();
|
||||||
|
|
||||||
boolean unidentified = deliver(messageId, recipient, record);
|
boolean unidentified = deliver(record);
|
||||||
|
|
||||||
if (messageId >= 0) {
|
if (messageId >= 0) {
|
||||||
database.markAsSent(messageId, true);
|
database.markAsSent(messageId, true);
|
||||||
@ -185,11 +185,12 @@ public class PushTextSendJob extends PushSendJob implements InjectableType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean deliver(long messageId, Recipient recipient, SmsMessageRecord message)
|
private boolean deliver(SmsMessageRecord message)
|
||||||
throws UntrustedIdentityException, InsecureFallbackApprovalException, RetryLaterException
|
throws UntrustedIdentityException, InsecureFallbackApprovalException, RetryLaterException
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
// rotateSenderCertificateIfNecessary();
|
// rotateSenderCertificateIfNecessary();
|
||||||
|
Recipient recipient = Recipient.from(context, destination, false);
|
||||||
SignalServiceAddress address = getPushAddress(recipient.getAddress());
|
SignalServiceAddress address = getPushAddress(recipient.getAddress());
|
||||||
Optional<byte[]> profileKey = getProfileKey(recipient);
|
Optional<byte[]> profileKey = getProfileKey(recipient);
|
||||||
Optional<UnidentifiedAccessPair> unidentifiedAccess = UnidentifiedAccessUtil.getAccessFor(context, recipient);
|
Optional<UnidentifiedAccessPair> unidentifiedAccess = UnidentifiedAccessUtil.getAccessFor(context, recipient);
|
||||||
|
@ -239,8 +239,34 @@ public class MessageSender {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void sendMediaPush(Context context, Recipient recipient, long messageId) {
|
private static void sendMediaPush(Context context, Recipient recipient, long messageId) {
|
||||||
|
LokiStorageAPI storageAPI = LokiStorageAPI.Companion.getShared();
|
||||||
JobManager jobManager = ApplicationContext.getInstance(context).getJobManager();
|
JobManager jobManager = ApplicationContext.getInstance(context).getJobManager();
|
||||||
PushMediaSendJob.enqueue(context, jobManager, messageId, recipient.getAddress());
|
|
||||||
|
// Just send the message normally if the storage api is not set or if it's a group message
|
||||||
|
String recipientPubKey = recipient.getAddress().serialize();
|
||||||
|
if (storageAPI == null || UtilKt.isGroupChat(recipientPubKey)) {
|
||||||
|
if (storageAPI == null) { Log.w("Loki", "LokiStorageAPI is not initialized!"); }
|
||||||
|
PushMediaSendJob.enqueue(context, jobManager, messageId, recipient.getAddress());
|
||||||
|
}
|
||||||
|
|
||||||
|
MultiDeviceUtilKt.getAllDevices(context, recipientPubKey, storageAPI, (devicePubKey, isFriend, friendCount) -> {
|
||||||
|
Address deviceAddress = Address.fromSerialized(devicePubKey);
|
||||||
|
long messageIdToUse = recipientPubKey.equals(devicePubKey) ? messageId : -1L;
|
||||||
|
|
||||||
|
// Send a normal message to our friends
|
||||||
|
if (isFriend) {
|
||||||
|
PushMediaSendJob.enqueue(context, jobManager, messageId, messageIdToUse, deviceAddress);
|
||||||
|
} else {
|
||||||
|
// Send friend requests to non friends
|
||||||
|
// If we're friends with one of the devices then send out a default friend request message
|
||||||
|
boolean isFriendsWithAny = friendCount > 0;
|
||||||
|
String defaultFriendRequestMessage = isFriendsWithAny ? "This is a friend request for devices linked to " + recipientPubKey : null;
|
||||||
|
PushMediaSendJob.enqueue(context, jobManager, messageId, messageIdToUse, deviceAddress, true, defaultFriendRequestMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
return Unit.INSTANCE;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void sendGroupPush(Context context, Recipient recipient, long messageId, Address filterAddress) {
|
private static void sendGroupPush(Context context, Recipient recipient, long messageId, Address filterAddress) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user