mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 23:51:00 +00:00
Update to 7.3.0 (2196)
This commit is contained in:
parent
d52b2c921a
commit
4b588b90aa
69 changed files with 4280 additions and 1841 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue