mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-26 07:30:16 +00:00
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.
This commit is contained in:
@@ -63,7 +63,6 @@ public class ApplicationPreferencesActivity extends PassphraseRequiredSherlockPr
|
||||
public static final String LED_BLINK_PREF = "pref_led_blink";
|
||||
public static final String LED_BLINK_PREF_CUSTOM = "pref_led_blink_custom";
|
||||
public static final String IDENTITY_PREF = "pref_choose_identity";
|
||||
public static final String SEND_IDENTITY_PREF = "pref_send_identity_key";
|
||||
public static final String ALL_MMS_PERF = "pref_all_mms";
|
||||
public static final String PASSPHRASE_TIMEOUT_INTERVAL_PREF = "pref_timeout_interval";
|
||||
public static final String PASSPHRASE_TIMEOUT_PREF = "pref_timeout_passphrase";
|
||||
|
||||
@@ -115,9 +115,7 @@ public class KeyExchangeMessage {
|
||||
}
|
||||
|
||||
private static boolean includeIdentitySignature(int messageVersion, Context context) {
|
||||
return IdentityKeyUtil.hasIdentityKey(context) &&
|
||||
(messageVersion >= 1) &&
|
||||
PreferenceManager.getDefaultSharedPreferences(context).getBoolean(ApplicationPreferencesActivity.SEND_IDENTITY_PREF, true);
|
||||
return IdentityKeyUtil.hasIdentityKey(context) && (messageVersion >= 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user