Skip to content

Commit e3c5e83

Browse files
author
Lilia Markham
committed
Remove sign key exchange preference
Yet another setting that most users will never touch. Workaround for those who would is to use a different identity key per device. Let this be a sacrifice to the android settings design pattern gods.
1 parent 40eca5e commit e3c5e83

3 files changed

Lines changed: 1 addition & 9 deletions

File tree

res/xml/preferences.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@
6666
android:title="@string/preferences__complete_key_exchanges"
6767
android:summary="@string/preferences__automatically_complete_key_exchanges_for_new_sessions_or_for_existing_sessions_with_the_same_identity_key" />
6868

69-
<CheckBoxPreference android:defaultValue="true"
70-
android:key="pref_send_identity_key"
71-
android:summary="@string/preferences__sign_key_exchange_messages_with_identity_key"
72-
android:title="@string/preferences__sign_key_exchange" />
73-
7469
<CheckBoxPreference android:defaultValue="false"
7570
android:key="pref_timeout_passphrase"
7671
android:summary="@string/preferences__forget_passphrase_from_memory_after_some_interval"

src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public class ApplicationPreferencesActivity extends PassphraseRequiredSherlockPr
6363
public static final String LED_BLINK_PREF = "pref_led_blink";
6464
public static final String LED_BLINK_PREF_CUSTOM = "pref_led_blink_custom";
6565
public static final String IDENTITY_PREF = "pref_choose_identity";
66-
public static final String SEND_IDENTITY_PREF = "pref_send_identity_key";
6766
public static final String ALL_MMS_PERF = "pref_all_mms";
6867
public static final String PASSPHRASE_TIMEOUT_INTERVAL_PREF = "pref_timeout_interval";
6968
public static final String PASSPHRASE_TIMEOUT_PREF = "pref_timeout_passphrase";

src/org/thoughtcrime/securesms/crypto/KeyExchangeMessage.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ public KeyExchangeMessage(String messageBody) throws InvalidVersionException, In
115115
}
116116

117117
private static boolean includeIdentitySignature(int messageVersion, Context context) {
118-
return IdentityKeyUtil.hasIdentityKey(context) &&
119-
(messageVersion >= 1) &&
120-
PreferenceManager.getDefaultSharedPreferences(context).getBoolean(ApplicationPreferencesActivity.SEND_IDENTITY_PREF, true);
118+
return IdentityKeyUtil.hasIdentityKey(context) && (messageVersion >= 1);
121119
}
122120

123121

0 commit comments

Comments
 (0)