From 817f412c12d8cf6ca7ef86f07205355e5cd5506e Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sat, 21 Dec 2019 23:02:59 +0300 Subject: [PATCH] fix crash on 10.1.3 closes #44 --- patches/slashcommands/1013.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/patches/slashcommands/1013.patch b/patches/slashcommands/1013.patch index 175407dd9..dc7debf2e 100644 --- a/patches/slashcommands/1013.patch +++ b/patches/slashcommands/1013.patch @@ -1,6 +1,6 @@ diff -crB com.discord-1013-base/smali/com/discord/stores/StoreMessages.smali com.discord-1013/smali/com/discord/stores/StoreMessages.smali *** com.discord-1013-base/smali/com/discord/stores/StoreMessages.smali 2019-12-21 21:31:17.463361994 +0300 ---- com.discord-1013/smali/com/discord/stores/StoreMessages.smali 2019-12-21 22:11:55.958319524 +0300 +--- com.discord-1013/smali/com/discord/stores/StoreMessages.smali 2019-12-21 23:02:41.563047799 +0300 *************** *** 592,597 **** --- 592,601 ---- @@ -2775,7 +2775,7 @@ diff -crB com.discord-1013-base/smali/com/discord/stores/StoreMessages.smali com \ No newline at end of file diff -crB com.discord-1013-base/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali com.discord-1013/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali *** com.discord-1013-base/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali 2019-12-21 21:31:17.793363916 +0300 ---- com.discord-1013/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali 2019-12-21 22:12:21.881808592 +0300 +--- com.discord-1013/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali 2019-12-21 23:02:44.239730406 +0300 *************** *** 305,310 **** --- 305,340 ---- @@ -2825,15 +2825,15 @@ diff -crB com.discord-1013-base/smali/com/discord/widgets/chat/input/WidgetChatI + + const-string v15, "/ctc " + -+ invoke-virtual {v12, v15}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z ++ invoke-virtual {v13, v15}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z + + move-result v15 + + if-eqz v15, :cond_8 + -+ invoke-static {v12}, Lcom/discord/stores/StoreMessages;->slashCtc(Ljava/lang/String;)Ljava/lang/String; ++ invoke-static {v13}, Lcom/discord/stores/StoreMessages;->slashCtc(Ljava/lang/String;)Ljava/lang/String; + -+ move-result-object v12 ++ move-result-object v13 + + move-object/from16 v14, p0 + @@ -2843,7 +2843,7 @@ diff -crB com.discord-1013-base/smali/com/discord/widgets/chat/input/WidgetChatI + + iget-object v0, v14, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText; + -+ invoke-static {v15, v0, v12}, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->access$SetInput(Lcom/discord/widgets/chat/input/WidgetChatInputSend;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Ljava/lang/CharSequence;)Z ++ invoke-static {v15, v0, v13}, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->access$SetInput(Lcom/discord/widgets/chat/input/WidgetChatInputSend;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Ljava/lang/CharSequence;)Z + + move-result v15 +