diff --git a/TMessagesProj/build.gradle b/TMessagesProj/build.gradle index b37d8057..78ffb192 100644 --- a/TMessagesProj/build.gradle +++ b/TMessagesProj/build.gradle @@ -80,7 +80,7 @@ android { defaultConfig { minSdkVersion 8 targetSdkVersion 19 - versionCode 318 + versionCode 319 versionName "1.8.0" } } diff --git a/TMessagesProj/src/main/java/org/telegram/android/NotificationsController.java b/TMessagesProj/src/main/java/org/telegram/android/NotificationsController.java index edecdfca..71b44953 100644 --- a/TMessagesProj/src/main/java/org/telegram/android/NotificationsController.java +++ b/TMessagesProj/src/main/java/org/telegram/android/NotificationsController.java @@ -447,7 +447,7 @@ public class NotificationsController { } else if (needVibrate == 0 || needVibrate == 5) { mBuilder.setDefaults(NotificationCompat.DEFAULT_VIBRATE); } else if (needVibrate == 3) { - mBuilder.setVibrate(new long[]{0, 300, 100, 300}); + mBuilder.setVibrate(new long[]{0, 500}); } } else { mBuilder.setVibrate(new long[]{0, 0}); diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java index 3963b7cd..75d0f074 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java @@ -2791,7 +2791,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not MediaController.saveFile(fileName, selectedObject.messageOwner.attachPath, getParentActivity(), 1, null); } else if (selectedObject.type == 1) { MediaController.saveFile(fileName, selectedObject.messageOwner.attachPath, getParentActivity(), 0, null); - } else if (selectedObject.type == 8) { + } else if (selectedObject.type == 8 || selectedObject.type == 9) { MediaController.saveFile(fileName, selectedObject.messageOwner.attachPath, getParentActivity(), 2, selectedObject.messageOwner.media.document.file_name); } } else if (option == 5) {