From 021bf1b33cba8aa2d06526659ba7e936c76739e6 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 11 Jun 2019 14:41:04 +1000 Subject: [PATCH] Clean --- .../thoughtcrime/securesms/jobs/PushTextSendJob.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/org/thoughtcrime/securesms/jobs/PushTextSendJob.java b/src/org/thoughtcrime/securesms/jobs/PushTextSendJob.java index 27c1f17085..d1f9a50d48 100644 --- a/src/org/thoughtcrime/securesms/jobs/PushTextSendJob.java +++ b/src/org/thoughtcrime/securesms/jobs/PushTextSendJob.java @@ -29,16 +29,11 @@ import org.whispersystems.signalservice.api.messages.SignalServiceDataMessage; import org.whispersystems.signalservice.api.messages.multidevice.SignalServiceSyncMessage; import org.whispersystems.signalservice.api.push.SignalServiceAddress; import org.whispersystems.signalservice.api.push.exceptions.UnregisteredUserException; -import org.whispersystems.signalservice.internal.push.SignalServiceProtos; -import org.whispersystems.signalservice.loki.api.LokiAPI; -import org.whispersystems.signalservice.loki.messaging.SignalMessageInfo; import java.io.IOException; import javax.inject.Inject; -import kotlin.Unit; - public class PushTextSendJob extends PushSendJob implements InjectableType { public static final String KEY = "PushTextSendJob"; @@ -94,11 +89,6 @@ public class PushTextSendJob extends PushSendJob implements InjectableType { byte[] profileKey = recipient.getProfileKey(); UnidentifiedAccessMode accessMode = recipient.getUnidentifiedAccessMode(); - String hexEncodedPublicKey = TextSecurePreferences.getLocalNumber(context); - SignalMessageInfo message = new SignalMessageInfo(SignalServiceProtos.Envelope.Type.FRIEND_REQUEST, System.currentTimeMillis(), hexEncodedPublicKey, 0, "stub", recipient.getAddress().serialize(), 4 * 24 * 60 * 60 * 1000, false); - LokiAPI api = new LokiAPI(hexEncodedPublicKey, DatabaseFactory.getLokiAPIDatabase(context)); - api.sendSignalMessage(message, () -> Unit.INSTANCE); - boolean unidentified = deliver(record); database.markAsSent(messageId, true);