slashcommands: also work on edits

This commit is contained in:
ave 2019-05-20 02:07:27 +03:00
parent f2dfc15645
commit 835d0dffe1
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -2,10 +2,23 @@ Only in com.discord-900: build
Only in com.discord-900: dist
diff -crB com.discord-900-base/smali/com/discord/stores/StoreMessages.smali com.discord-900/smali/com/discord/stores/StoreMessages.smali
*** com.discord-900-base/smali/com/discord/stores/StoreMessages.smali 2019-05-19 21:52:46.439797252 +0300
--- com.discord-900/smali/com/discord/stores/StoreMessages.smali 2019-05-20 01:13:57.479923931 +0300
--- com.discord-900/smali/com/discord/stores/StoreMessages.smali 2019-05-20 02:01:19.969867668 +0300
***************
*** 432,437 ****
--- 432,441 ----
invoke-static {p5, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
+ invoke-static {p5}, Lcom/discord/stores/StoreMessages;->interceptEditMessage(Ljava/lang/String;)Ljava/lang/String;
+
+ move-result-object p5
+
.line 167
invoke-direct {p0, p3, p4}, Lcom/discord/stores/StoreMessages;->getMessageQueue(J)Lcom/discord/utilities/messagesend/MessageQueue;
***************
*** 948,953 ****
--- 948,2112 ----
--- 952,2136 ----
return-void
.end method
@ -987,8 +1000,8 @@ diff -crB com.discord-900-base/smali/com/discord/stores/StoreMessages.smali com.
+ return-object p0
+ .end method
+
+ .method public static final interceptMessage(Ljava/lang/String;)Ljava/lang/String;
+ .locals 2
+ .method public static final slashCommands(Ljava/lang/String;)Ljava/lang/String;
+ .locals 1
+
+ # Ideas for commands (by luna): lower [done], upper [done], fw [done], bold [done], shrug [done]
+ # Ideas for commands (by bela): small, smaller
@ -1167,17 +1180,37 @@ diff -crB com.discord-900-base/smali/com/discord/stores/StoreMessages.smali com.
+
+ return-object p0
+ .end method
+
+ .method public static final interceptSendMessage(Ljava/lang/String;)Ljava/lang/String;
+ .locals 1
+
+ invoke-static {p0}, Lcom/discord/stores/StoreMessages;->slashCommands(Ljava/lang/String;)Ljava/lang/String;
+
+ move-result-object p0
+
+ return-object p0
+ .end method
+
+ .method public static final interceptEditMessage(Ljava/lang/String;)Ljava/lang/String;
+ .locals 1
+
+ invoke-static {p0}, Lcom/discord/stores/StoreMessages;->slashCommands(Ljava/lang/String;)Ljava/lang/String;
+
+ move-result-object p0
+
+ return-object p0
+ .end method
+
.method public final sendMessage(JLcom/discord/models/domain/ModelUser;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)Lrx/Observable;
.locals 8
.annotation system Ldalvik/annotation/Signature;
***************
*** 977,982 ****
--- 2136,2145 ----
--- 2160,2169 ----
invoke-static {p4, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
+ invoke-static {p4}, Lcom/discord/stores/StoreMessages;->interceptMessage(Ljava/lang/String;)Ljava/lang/String;
+ invoke-static {p4}, Lcom/discord/stores/StoreMessages;->interceptSendMessage(Ljava/lang/String;)Ljava/lang/String;
+
+ move-result-object p4
+