mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-29 04:29:33 +00:00
Update to 6.0.0 (1908)
This commit is contained in:
parent
df90eface5
commit
80c4acfa3b
1160 changed files with 237084 additions and 5423 deletions
|
|
@ -18,6 +18,7 @@ import org.telegram.tgnet.SerializedData;
|
|||
import org.telegram.tgnet.TLRPC;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class UserConfig extends BaseController {
|
||||
|
||||
|
|
@ -47,6 +48,7 @@ public class UserConfig extends BaseController {
|
|||
public int migrateOffsetChatId = -1;
|
||||
public int migrateOffsetChannelId = -1;
|
||||
public long migrateOffsetAccess = -1;
|
||||
public boolean filtersLoaded;
|
||||
|
||||
public int sharingMyLocationUntil;
|
||||
public int lastMyLocationShareTime;
|
||||
|
|
@ -147,6 +149,7 @@ public class UserConfig extends BaseController {
|
|||
editor.putBoolean("hasValidDialogLoadIds", hasValidDialogLoadIds);
|
||||
editor.putInt("sharingMyLocationUntil", sharingMyLocationUntil);
|
||||
editor.putInt("lastMyLocationShareTime", lastMyLocationShareTime);
|
||||
editor.putBoolean("filtersLoaded", filtersLoaded);
|
||||
if (tonEncryptedData != null) {
|
||||
editor.putString("tonEncryptedData", tonEncryptedData);
|
||||
editor.putString("tonPublicKey", tonPublicKey);
|
||||
|
|
@ -303,6 +306,7 @@ public class UserConfig extends BaseController {
|
|||
tonCreationFinished = preferences.getBoolean("tonCreationFinished", true);
|
||||
sharingMyLocationUntil = preferences.getInt("sharingMyLocationUntil", 0);
|
||||
lastMyLocationShareTime = preferences.getInt("lastMyLocationShareTime", 0);
|
||||
filtersLoaded = preferences.getBoolean("filtersLoaded", false);
|
||||
String salt = preferences.getString("tonPasscodeSalt", null);
|
||||
if (salt != null) {
|
||||
try {
|
||||
|
|
@ -417,15 +421,11 @@ public class UserConfig extends BaseController {
|
|||
public void resetSavedPassword() {
|
||||
savedPasswordTime = 0;
|
||||
if (savedPasswordHash != null) {
|
||||
for (int a = 0; a < savedPasswordHash.length; a++) {
|
||||
savedPasswordHash[a] = 0;
|
||||
}
|
||||
Arrays.fill(savedPasswordHash, (byte) 0);
|
||||
savedPasswordHash = null;
|
||||
}
|
||||
if (savedSaltedPassword != null) {
|
||||
for (int a = 0; a < savedSaltedPassword.length; a++) {
|
||||
savedSaltedPassword[a] = 0;
|
||||
}
|
||||
Arrays.fill(savedSaltedPassword, (byte) 0);
|
||||
savedSaltedPassword = null;
|
||||
}
|
||||
}
|
||||
|
|
@ -479,6 +479,7 @@ public class UserConfig extends BaseController {
|
|||
unreadDialogsLoaded = true;
|
||||
hasValidDialogLoadIds = true;
|
||||
unacceptedTermsOfService = null;
|
||||
filtersLoaded = false;
|
||||
pendingAppUpdate = null;
|
||||
hasSecureData = false;
|
||||
loginTime = (int) (System.currentTimeMillis() / 1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue