From 328eac4c4829d0fa18aae71b3dea3f93b189fcd4 Mon Sep 17 00:00:00 2001 From: eatsfoobars Date: Tue, 14 Jan 2020 13:29:11 +0000 Subject: [PATCH] Fix slashcommands when message contains attachments --- patches/slashcommands/1021.patch | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/patches/slashcommands/1021.patch b/patches/slashcommands/1021.patch index febd89f..004ef25 100644 --- a/patches/slashcommands/1021.patch +++ b/patches/slashcommands/1021.patch @@ -1,8 +1,6 @@ -Only in com.discord-1019: build -Only in com.discord-1019: dist -diff -crB com.discord-1019-base/smali/com/discord/stores/StoreMessages.smali com.discord-1019/smali/com/discord/stores/StoreMessages.smali -*** com.discord-1019-base/smali/com/discord/stores/StoreMessages.smali 2020-01-10 14:08:30.055000416 +0300 ---- com.discord-1019/smali/com/discord/stores/StoreMessages.smali 2020-01-10 17:07:41.483341834 +0300 +diff -crB from/smali/com/discord/stores/StoreMessages.smali to/smali/com/discord/stores/StoreMessages.smali +*** from/smali/com/discord/stores/StoreMessages.smali 2020-01-14 13:23:20.364260525 +0000 +--- to/smali/com/discord/stores/StoreMessages.smali 2020-01-14 13:23:01.107608765 +0000 *************** *** 611,616 **** --- 611,620 ---- @@ -17,11 +15,11 @@ diff -crB com.discord-1019-base/smali/com/discord/stores/StoreMessages.smali com invoke-direct {p0, p3, p4}, Lcom/discord/stores/StoreMessages;->getMessageQueue(J)Lcom/discord/utilities/messagesend/MessageQueue; *************** -*** 1285,1290 **** ---- 1289,1302 ---- - - const/4 v14, 0x0 +*** 1287,1292 **** +--- 1291,1304 ---- + .line 2 + :goto_0 + move-object/from16 v8, p4 + + invoke-static {v8}, Lcom/discord/stores/StoreMessages;->interceptSendMessage(Ljava/lang/String;)Ljava/lang/String; @@ -30,9 +28,9 @@ diff -crB com.discord-1019-base/smali/com/discord/stores/StoreMessages.smali com + + move-object/16 p4, v8 + - .line 2 - :goto_0 iget-object v0, v7, Lcom/discord/stores/StoreMessages;->clock:Lcom/discord/utilities/time/Clock; + + move-object/from16 v8, p4 *************** *** 1369,1371 **** --- 1381,4120 ---- @@ -2776,10 +2774,9 @@ diff -crB com.discord-1019-base/smali/com/discord/stores/StoreMessages.smali com + :cond_0 + return-object p0 + .end method -\ No newline at end of file -diff -crB com.discord-1019-base/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali com.discord-1019/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali -*** com.discord-1019-base/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali 2020-01-10 14:08:30.331668478 +0300 ---- com.discord-1019/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali 2020-01-10 16:59:31.223187411 +0300 +diff -crB from/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali to/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali +*** from/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali 2020-01-14 13:23:20.647593639 +0000 +--- to/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali 2020-01-14 13:23:01.120942088 +0000 *************** *** 305,310 **** --- 305,340 ---- @@ -2858,4 +2855,3 @@ diff -crB com.discord-1019-base/smali/com/discord/widgets/chat/input/WidgetChatI invoke-static {v13, v4}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 27 -