From 9e2bfe83b8c2faad8dd4013dd141bf3518836653 Mon Sep 17 00:00:00 2001 From: gdlbo <41114720+gdlbo@users.noreply.github.com> Date: Sun, 19 Mar 2023 21:06:30 +0300 Subject: [PATCH] Revert "disable out api inj for pinned msg" This reverts commit 8ca73197d6384fc0acc26d09048fe6c3ae815789. --- .../java/ru/vtosters/lite/utils/Preferences.java | 4 ---- smali/res/xml/preferences_messages.xml | 5 ----- .../MessagesGetConversationsApiCmd.smali | 16 +--------------- 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/app/src/main/java/ru/vtosters/lite/utils/Preferences.java b/app/src/main/java/ru/vtosters/lite/utils/Preferences.java index 40623253e..9b2d546b8 100644 --- a/app/src/main/java/ru/vtosters/lite/utils/Preferences.java +++ b/app/src/main/java/ru/vtosters/lite/utils/Preferences.java @@ -172,10 +172,6 @@ public class Preferences { return getBoolValue("vkpay", true); } - public static boolean fixPinnedMsg() { - return getBoolValue("fixPinnedMsg", false); - } - public static boolean miniapps() { return getBoolValue("miniapps", true); } diff --git a/smali/res/xml/preferences_messages.xml b/smali/res/xml/preferences_messages.xml index 82de51a78..450f7052c 100644 --- a/smali/res/xml/preferences_messages.xml +++ b/smali/res/xml/preferences_messages.xml @@ -50,11 +50,6 @@ android:title="@string/autoalltranslate_title"/> - a:I - - invoke-static {}, Lru/vtosters/lite/utils/Preferences;->fixPinnedMsg()Z - - move-result v3 - - if-eqz v3, :cond_7 - + const-string v3, "major_sort_id" const-string v4, "1023" @@ -255,7 +249,6 @@ :cond_4 invoke-virtual {v1, v3, v4}, Lcom/vk/api/internal/MethodCall$a;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/vk/api/internal/MethodCall$a; - :cond_7 invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 @@ -310,18 +303,11 @@ invoke-virtual {v1, v0}, Lcom/vk/api/internal/MethodCall$a;->b(Z)Lcom/vk/api/internal/MethodCall$a; - invoke-static {}, Lru/vtosters/lite/utils/Preferences;->fixPinnedMsg()Z - - move-result v3 - - if-eqz v3, :cond_8 - const-string v2, "5.131" .line 10 invoke-virtual {v1, v2}, Lcom/vk/api/internal/MethodCall$a;->b(Ljava/lang/String;)Lcom/vk/api/internal/MethodCall$a; - :cond_8 .line 13 invoke-virtual {v1}, Lcom/vk/api/internal/MethodCall$a;->a()Lcom/vk/api/internal/MethodCall;