|
|
|
@ -60,7 +60,6 @@ public class RemoteReplyReceiver extends MasterSecretBroadcastReceiver {
|
|
|
|
|
|
|
|
|
|
final long[] recipientIds = intent.getLongArrayExtra(RECIPIENT_IDS_EXTRA);
|
|
|
|
|
final CharSequence responseText = remoteInput.getCharSequence(MessageNotifier.EXTRA_REMOTE_REPLY);
|
|
|
|
|
final Recipients recipients = RecipientFactory.getRecipientsForIds(context, recipientIds, false);
|
|
|
|
|
|
|
|
|
|
if (masterSecret != null && responseText != null) {
|
|
|
|
|
new AsyncTask<Void, Void, Void>() {
|
|
|
|
@ -72,6 +71,7 @@ public class RemoteReplyReceiver extends MasterSecretBroadcastReceiver {
|
|
|
|
|
int subscriptionId = preferences.isPresent() ? preferences.get().getDefaultSubscriptionId().or(-1) : -1;
|
|
|
|
|
long expiresIn = preferences.isPresent() ? preferences.get().getExpireMessages() * 1000 : 0;
|
|
|
|
|
|
|
|
|
|
Recipients recipients = RecipientFactory.getRecipientsForIds(context, recipientIds, false);
|
|
|
|
|
if (recipients.isGroupRecipient()) {
|
|
|
|
|
OutgoingMediaMessage reply = new OutgoingMediaMessage(recipients, responseText.toString(), new LinkedList<Attachment>(), System.currentTimeMillis(), subscriptionId, expiresIn, 0);
|
|
|
|
|
threadId = MessageSender.send(context, masterSecret, reply, -1, false);
|
|
|
|
|