Update to 7.3.0 (2196)

This commit is contained in:
DrKLO 2020-12-24 09:36:01 +04:00
parent d52b2c921a
commit 4b588b90aa
69 changed files with 4280 additions and 1841 deletions

View file

@ -2913,13 +2913,15 @@ public class NotificationsController extends BaseController {
if (!settings.equals(newSettingsHash)) {
SharedPreferences.Editor editor = null;
if (channelImportance == NotificationManager.IMPORTANCE_NONE) {
if (isInApp) {
editor = preferences.edit();
if (isDefault) {
editor = preferences.edit();
if (isDefault) {
if (!isInApp) {
editor.putInt(getGlobalNotificationsKey(type), Integer.MAX_VALUE);
} else {
editor.putInt("notify2_" + dialogId, 2);
updateServerNotificationsSettings(type);
}
} else {
editor.putInt("notify2_" + dialogId, 2);
updateServerNotificationsSettings(dialogId, true);
}
edited = true;
} else if (channelImportance != importance) {
@ -3063,7 +3065,7 @@ public class NotificationsController extends BaseController {
if (edited && newSettingsHash != null) {
preferences.edit().putString(key, channelId).putString(key + "_s", newSettingsHash).commit();
} else {
} else if (!isInApp || !isDefault) {
for (int a = 0; a < vibrationPattern.length; a++) {
newSettings.append(vibrationPattern[a]);
}