|
|
|
|
@ -19,6 +19,7 @@ import org.thoughtcrime.securesms.sms.OutgoingTextMessage;
|
|
|
|
|
import org.thoughtcrime.securesms.util.Rfc5724Uri;
|
|
|
|
|
|
|
|
|
|
import java.net.URISyntaxException;
|
|
|
|
|
import java.net.URLDecoder;
|
|
|
|
|
|
|
|
|
|
public class QuickResponseService extends MasterSecretIntentService {
|
|
|
|
|
|
|
|
|
|
@ -44,7 +45,11 @@ public class QuickResponseService extends MasterSecretIntentService {
|
|
|
|
|
try {
|
|
|
|
|
Rfc5724Uri uri = new Rfc5724Uri(intent.getDataString());
|
|
|
|
|
String content = intent.getStringExtra(Intent.EXTRA_TEXT);
|
|
|
|
|
Recipients recipients = RecipientFactory.getRecipientsFromString(this, uri.getPath(), false);
|
|
|
|
|
String numbers = uri.getPath();
|
|
|
|
|
if(numbers.contains("%")){
|
|
|
|
|
numbers = URLDecoder.decode(numbers);
|
|
|
|
|
}
|
|
|
|
|
Recipients recipients = RecipientFactory.getRecipientsFromString(this, numbers, false);
|
|
|
|
|
|
|
|
|
|
if (!TextUtils.isEmpty(content)) {
|
|
|
|
|
if (recipients.isSingleRecipient()) {
|
|
|
|
|
|