bluecord/patches/nospoiler/844.patch

67 lines
1.9 KiB
Diff
Raw Normal View History

2019-02-08 08:29:01 +00:00
diff -crB -x dist -x build com.discord-844-base/smali/com/discord/models/domain/ModelMessageEmbed.smali com.discord-844/smali/com/discord/models/domain/ModelMessageEmbed.smali
*** com.discord-844-base/smali/com/discord/models/domain/ModelMessageEmbed.smali 2019-02-08 11:20:05.764869983 +0300
--- com.discord-844/smali/com/discord/models/domain/ModelMessageEmbed.smali 2019-02-08 11:27:15.903197125 +0300
***************
*** 1908,1937 ****
.end method
.method public isSpoilerAttachment()Z
! .locals 2
- .line 135
- invoke-virtual {p0}, Lcom/discord/models/domain/ModelMessageEmbed;->isAttachment()Z
-
- move-result v0
-
- if-eqz v0, :cond_0
-
- iget-object v0, p0, Lcom/discord/models/domain/ModelMessageEmbed;->title:Ljava/lang/String;
-
- const-string v1, "SPOILER_"
-
- invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
-
- move-result v0
-
- if-eqz v0, :cond_0
-
- const/4 v0, 0x1
-
- return v0
-
- :cond_0
const/4 v0, 0x0
return v0
--- 1908,1915 ----
.end method
.method public isSpoilerAttachment()Z
! .locals 1
const/4 v0, 0x0
return v0
diff -crB -x dist -x build com.discord-844-base/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali com.discord-844/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali
*** com.discord-844-base/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2019-02-08 11:20:06.214871721 +0300
--- com.discord-844/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2019-02-08 11:27:15.906530471 +0300
***************
*** 211,218 ****
.method public final isRevealed()Z
.locals 1
! .line 23
! iget-boolean v0, p0, Lcom/discord/utilities/textprocessing/node/SpoilerNode;->isRevealed:Z
return v0
.end method
--- 211,217 ----
.method public final isRevealed()Z
.locals 1
! const/4 v0, 0x1
return v0
.end method