mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-04 06:08:02 +00:00
Disable non-blocking identity changes for iOS compat
// FREEBIE
This commit is contained in:
parent
5ed1c9c72b
commit
549e45e2d6
@ -28,11 +28,11 @@
|
|||||||
android:title="@string/preferences__screen_security"
|
android:title="@string/preferences__screen_security"
|
||||||
android:summary="@string/preferences__disable_screen_security_to_allow_screen_shots" />
|
android:summary="@string/preferences__disable_screen_security_to_allow_screen_shots" />
|
||||||
|
|
||||||
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
<!--<org.thoughtcrime.securesms.components.SwitchPreferenceCompat-->
|
||||||
android:defaultValue="false"
|
<!--android:defaultValue="false"-->
|
||||||
android:key="pref_blocking_identity_changes"
|
<!--android:key="pref_blocking_identity_changes"-->
|
||||||
android:title="@string/preferences_app_protection__safety_numbers_approval"
|
<!--android:title="@string/preferences_app_protection__safety_numbers_approval"-->
|
||||||
android:summary="@string/preferences_app_protecting__require_approval_of_new_safety_numbers_when_they_change"/>
|
<!--android:summary="@string/preferences_app_protecting__require_approval_of_new_safety_numbers_when_they_change"/>-->
|
||||||
|
|
||||||
<Preference android:key="preference_category_blocked"
|
<Preference android:key="preference_category_blocked"
|
||||||
android:title="@string/preferences_app_protection__blocked_contacts" />
|
android:title="@string/preferences_app_protection__blocked_contacts" />
|
||||||
|
@ -69,7 +69,7 @@ public class DatabaseUpgradeActivity extends BaseActivity {
|
|||||||
public static final int CONTACTS_ACCOUNT_VERSION = 136;
|
public static final int CONTACTS_ACCOUNT_VERSION = 136;
|
||||||
public static final int MEDIA_DOWNLOAD_CONTROLS_VERSION = 151;
|
public static final int MEDIA_DOWNLOAD_CONTROLS_VERSION = 151;
|
||||||
public static final int REDPHONE_SUPPORT_VERSION = 157;
|
public static final int REDPHONE_SUPPORT_VERSION = 157;
|
||||||
public static final int FINGERPRINTS_NON_BLOCKING_VESRION = 197;
|
// public static final int FINGERPRINTS_NON_BLOCKING_VESRION = 197;
|
||||||
|
|
||||||
private static final SortedSet<Integer> UPGRADE_VERSIONS = new TreeSet<Integer>() {{
|
private static final SortedSet<Integer> UPGRADE_VERSIONS = new TreeSet<Integer>() {{
|
||||||
add(NO_MORE_KEY_EXCHANGE_PREFIX_VERSION);
|
add(NO_MORE_KEY_EXCHANGE_PREFIX_VERSION);
|
||||||
@ -83,7 +83,7 @@ public class DatabaseUpgradeActivity extends BaseActivity {
|
|||||||
add(MIGRATE_SESSION_PLAINTEXT);
|
add(MIGRATE_SESSION_PLAINTEXT);
|
||||||
add(MEDIA_DOWNLOAD_CONTROLS_VERSION);
|
add(MEDIA_DOWNLOAD_CONTROLS_VERSION);
|
||||||
add(REDPHONE_SUPPORT_VERSION);
|
add(REDPHONE_SUPPORT_VERSION);
|
||||||
add(FINGERPRINTS_NON_BLOCKING_VESRION);
|
// add(FINGERPRINTS_NON_BLOCKING_VESRION);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
private MasterSecret masterSecret;
|
private MasterSecret masterSecret;
|
||||||
@ -234,9 +234,9 @@ public class DatabaseUpgradeActivity extends BaseActivity {
|
|||||||
.add(new DirectoryRefreshJob(getApplicationContext()));
|
.add(new DirectoryRefreshJob(getApplicationContext()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params[0] < FINGERPRINTS_NON_BLOCKING_VESRION) {
|
// if (params[0] < FINGERPRINTS_NON_BLOCKING_VESRION) {
|
||||||
TextSecurePreferences.setBlockingIdentityUpdates(getApplicationContext(), true);
|
// TextSecurePreferences.setBlockingIdentityUpdates(getApplicationContext(), true);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,8 @@ public class TextSecurePreferences {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isBlockingIdentityUpdates(Context context) {
|
public static boolean isBlockingIdentityUpdates(Context context) {
|
||||||
return getBooleanPreference(context, BLOCKING_IDENTITY_CHANGES_PREF, false);
|
return true;
|
||||||
|
// return getBooleanPreference(context, BLOCKING_IDENTITY_CHANGES_PREF, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setBlockingIdentityUpdates(Context context, boolean value) {
|
public static void setBlockingIdentityUpdates(Context context, boolean value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user