mirror of
https://booba.tech/CutTheCord/cutthecord.git
synced 2024-08-15 03:24:52 +00:00
92 lines
No EOL
2.6 KiB
Diff
92 lines
No EOL
2.6 KiB
Diff
diff -crB from/smali_classes2/com/discord/utilities/textprocessing/MessagePreprocessor.smali to/smali_classes2/com/discord/utilities/textprocessing/MessagePreprocessor.smali
|
|
*** from/smali_classes2/com/discord/utilities/textprocessing/MessagePreprocessor.smali 2021-08-04 19:45:53.005373900 +0100
|
|
--- to/smali_classes2/com/discord/utilities/textprocessing/MessagePreprocessor.smali 2021-08-04 21:16:24.965470600 +0100
|
|
***************
|
|
*** 773,851 ****
|
|
.end method
|
|
|
|
.method private final stripSimpleEmbedLink(Ljava/util/Collection;)V
|
|
! .locals 3
|
|
! .annotation system Ldalvik/annotation/Signature;
|
|
! value = {
|
|
! "(",
|
|
! "Ljava/util/Collection<",
|
|
! "Lcom/discord/simpleast/core/node/Node<",
|
|
! "Lcom/discord/utilities/textprocessing/MessageRenderContext;",
|
|
! ">;>;)V"
|
|
! }
|
|
! .end annotation
|
|
|
|
- .line 1
|
|
- invoke-interface {p1}, Ljava/util/Collection;->size()I
|
|
-
|
|
- move-result v0
|
|
-
|
|
- const/4 v1, 0x1
|
|
-
|
|
- if-ne v0, v1, :cond_2
|
|
-
|
|
- iget-object v0, p0, Lcom/discord/utilities/textprocessing/MessagePreprocessor;->embeds:Ljava/util/List;
|
|
-
|
|
- if-eqz v0, :cond_2
|
|
-
|
|
- invoke-interface {v0}, Ljava/util/List;->size()I
|
|
-
|
|
- move-result v0
|
|
-
|
|
- if-eq v0, v1, :cond_0
|
|
-
|
|
- goto :goto_0
|
|
-
|
|
- :cond_0
|
|
- const/4 v0, 0x0
|
|
-
|
|
- .line 2
|
|
- invoke-static {p1, v0}, Ld0/t/u;->elementAt(Ljava/lang/Iterable;I)Ljava/lang/Object;
|
|
-
|
|
- move-result-object v1
|
|
-
|
|
- check-cast v1, Lcom/discord/simpleast/core/node/Node;
|
|
-
|
|
- .line 3
|
|
- iget-object v2, p0, Lcom/discord/utilities/textprocessing/MessagePreprocessor;->embeds:Ljava/util/List;
|
|
-
|
|
- invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
-
|
|
- move-result-object v0
|
|
-
|
|
- check-cast v0, Lcom/discord/api/message/embed/MessageEmbed;
|
|
-
|
|
- .line 4
|
|
- instance-of v1, v1, Lcom/discord/utilities/textprocessing/node/UrlNode;
|
|
-
|
|
- if-nez v1, :cond_1
|
|
-
|
|
- return-void
|
|
-
|
|
- .line 5
|
|
- :cond_1
|
|
- sget-object v1, Lcom/discord/utilities/embed/EmbedResourceUtils;->INSTANCE:Lcom/discord/utilities/embed/EmbedResourceUtils;
|
|
-
|
|
- invoke-virtual {v1, v0}, Lcom/discord/utilities/embed/EmbedResourceUtils;->isSimpleEmbed(Lcom/discord/api/message/embed/MessageEmbed;)Z
|
|
-
|
|
- move-result v0
|
|
-
|
|
- if-eqz v0, :cond_2
|
|
-
|
|
- .line 6
|
|
- invoke-interface {p1}, Ljava/util/Collection;->clear()V
|
|
-
|
|
- :cond_2
|
|
- :goto_0
|
|
return-void
|
|
.end method
|
|
|
|
--- 773,780 ----
|
|
.end method
|
|
|
|
.method private final stripSimpleEmbedLink(Ljava/util/Collection;)V
|
|
! .locals 0
|
|
|
|
return-void
|
|
.end method
|