Fix slashcommands patch regression

This commit is contained in:
eatsfoobars 2020-04-30 02:13:48 +01:00
parent b2bde909dd
commit ecdaae17c9
Signed by: eatsfoobars
GPG key ID: D08609FADBD8C395

View file

@ -3351,13 +3351,13 @@ diff -crB from/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configur
+
+ const-string v15, "/ctc "
+
+ invoke-virtual {v12, v15}, ljava/lang/string;->startswith(ljava/lang/string;)z
+ invoke-virtual {v12, v15}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
+
+ move-result v15
+
+ if-eqz v15, :cond_10
+
+ invoke-static {v12}, lcom/discord/stores/storemessages;->slashctc(ljava/lang/string;)ljava/lang/string;
+ invoke-static {v12}, Lcom/discord/stores/StoreMessages;->slashCtc(Ljava/lang/String;)Ljava/lang/String;
+
+ move-result-object v12
+
@ -3365,11 +3365,11 @@ diff -crB from/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configur
+
+ move-object/from16 v15, p1
+
+ sget-object v15, lcom/discord/widgets/chat/input/widgetchatinputsend;->instance:lcom/discord/widgets/chat/input/widgetchatinputsend;
+ sget-object v15, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->INSTANCE:Lcom/discord/widgets/chat/input/WidgetChatInputSend;
+
+ iget-object v0, v14, lcom/discord/widgets/chat/input/widgetchatinputsend$configuresendlisteners$1;->$chatinput:lcom/discord/widgets/chat/input/widgetchatinputedittext;
+ 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, 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
+
+ move-result v15
+