diff --git a/src/org/thoughtcrime/securesms/TransportOptions.java b/src/org/thoughtcrime/securesms/TransportOptions.java index 39400b7ddc..00ed7f42d3 100644 --- a/src/org/thoughtcrime/securesms/TransportOptions.java +++ b/src/org/thoughtcrime/securesms/TransportOptions.java @@ -32,7 +32,7 @@ public class TransportOptions { private final Context context; private final List enabledTransports; - private Type defaultTransportType = Type.SMS; + private Type defaultTransportType = Type.TEXTSECURE; private Optional defaultSubscriptionId = Optional.absent(); private Optional selectedOption = Optional.absent(); @@ -53,7 +53,7 @@ public class TransportOptions { if (selectedOption.isPresent() && !isEnabled(selectedOption.get())) { setSelectedTransport(null); } else { - this.defaultTransportType = Type.SMS; + this.defaultTransportType = Type.TEXTSECURE; this.defaultSubscriptionId = Optional.absent(); notifyTransportChangeListeners(); @@ -149,16 +149,6 @@ public class TransportOptions { private List initializeAvailableTransports(boolean isMediaMessage) { List results = new LinkedList<>(); - if (isMediaMessage) { - results.addAll(getTransportOptionsForSimCards(context.getString(R.string.ConversationActivity_transport_insecure_mms), - context.getString(R.string.conversation_activity__type_message_mms_insecure), - new MmsCharacterCalculator())); - } else { - results.addAll(getTransportOptionsForSimCards(context.getString(R.string.ConversationActivity_transport_insecure_sms), - context.getString(R.string.conversation_activity__type_message_sms_insecure), - new SmsCharacterCalculator())); - } - results.add(new TransportOption(Type.TEXTSECURE, R.drawable.ic_send_push_white_24dp, context.getResources().getColor(R.color.textsecure_primary), context.getString(R.string.ConversationActivity_transport_signal), diff --git a/src/org/thoughtcrime/securesms/conversation/ConversationActivity.java b/src/org/thoughtcrime/securesms/conversation/ConversationActivity.java index d57facc332..1ab6cfff39 100644 --- a/src/org/thoughtcrime/securesms/conversation/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/conversation/ConversationActivity.java @@ -1330,7 +1330,9 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity boolean isMediaMessage = recipient.isMmsGroupRecipient() || attachmentManager.isAttachmentPresent(); sendButton.resetAvailableTransports(isMediaMessage); + sendButton.setDefaultTransport(Type.TEXTSECURE); + /* Loki - We don't support SMS if (!isSecureText && !isPushGroupConversation()) sendButton.disableTransport(Type.TEXTSECURE); if (recipient.isPushGroupRecipient()) sendButton.disableTransport(Type.SMS); @@ -1340,6 +1342,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity if (isSecureText || isPushGroupConversation()) sendButton.setDefaultTransport(Type.TEXTSECURE); else sendButton.setDefaultTransport(Type.SMS); } + */ calculateCharactersRemaining(); supportInvalidateOptionsMenu();