Update to 7.2.1 (2136)

This commit is contained in:
DrKLO 2020-10-30 22:15:43 +03:00
parent 8726c6d11f
commit 11fbfb1329
3 changed files with 6 additions and 5 deletions

View file

@ -285,7 +285,7 @@ android {
} }
} }
defaultConfig.versionCode = 2135 defaultConfig.versionCode = 2136
applicationVariants.all { variant -> applicationVariants.all { variant ->
variant.outputs.all { output -> variant.outputs.all { output ->

View file

@ -18,7 +18,7 @@ public class BuildVars {
public static boolean LOGS_ENABLED = false; public static boolean LOGS_ENABLED = false;
public static boolean USE_CLOUD_STRINGS = true; public static boolean USE_CLOUD_STRINGS = true;
public static boolean CHECK_UPDATES = true; public static boolean CHECK_UPDATES = true;
public static int BUILD_VERSION = 2135; public static int BUILD_VERSION = 2136;
public static String BUILD_VERSION_STRING = "7.2.0"; public static String BUILD_VERSION_STRING = "7.2.0";
public static int APP_ID = 4; public static int APP_ID = 4;
public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103"; public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103";

View file

@ -8998,14 +8998,15 @@ public class MessagesStorage extends BaseController {
long did = messagesByDialogs.keyAt(a); long did = messagesByDialogs.keyAt(a);
ArrayList<Integer> mids = messagesByDialogs.valueAt(a); ArrayList<Integer> mids = messagesByDialogs.valueAt(a);
int lowerId = (int) did; int lowerId = (int) did;
String idsStr = TextUtils.join(",", mids);
if (lowerId != 0) { if (lowerId != 0) {
if (lowerId < 0) { if (lowerId < 0) {
database.executeFast(String.format(Locale.US, "UPDATE chat_settings_v2 SET pinned = 0 WHERE uid = %d AND pinned IN (%s)", -lowerId, mids)).stepThis().dispose(); database.executeFast(String.format(Locale.US, "UPDATE chat_settings_v2 SET pinned = 0 WHERE uid = %d AND pinned IN (%s)", -lowerId, idsStr)).stepThis().dispose();
} else { } else {
database.executeFast(String.format(Locale.US, "UPDATE user_settings SET pinned = 0 WHERE uid = %d AND pinned IN (%s)", lowerId, mids)).stepThis().dispose(); database.executeFast(String.format(Locale.US, "UPDATE user_settings SET pinned = 0 WHERE uid = %d AND pinned IN (%s)", lowerId, idsStr)).stepThis().dispose();
} }
} }
database.executeFast(String.format(Locale.US, "DELETE FROM chat_pinned_v2 WHERE uid = %d AND mid IN(%s)", did, TextUtils.join(",", mids))).stepThis().dispose(); database.executeFast(String.format(Locale.US, "DELETE FROM chat_pinned_v2 WHERE uid = %d AND mid IN(%s)", did, idsStr)).stepThis().dispose();
int updatedCount = 0; int updatedCount = 0;
cursor = database.queryFinalized("SELECT changes()"); cursor = database.queryFinalized("SELECT changes()");
if (cursor.next()) { if (cursor.next()) {