cutthecord/patches/nospoiler/965.patch

65 lines
1.8 KiB
Diff
Raw Permalink Normal View History

2019-10-03 05:52:14 +00:00
diff -crB from/smali/com/discord/models/domain/ModelMessageEmbed.smali to/smali/com/discord/models/domain/ModelMessageEmbed.smali
*** from/smali/com/discord/models/domain/ModelMessageEmbed.smali 2019-10-01 22:09:20.587321985 +0300
--- to/smali/com/discord/models/domain/ModelMessageEmbed.smali 2019-10-01 22:10:10.570987647 +0300
***************
*** 1897,1926 ****
.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
--- 1897,1903 ----
.end method
.method public isSpoilerAttachment()Z
! .locals 0
const/4 v0, 0x0
return v0
diff -crB from/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali to/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali
*** from/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2019-10-01 22:09:20.983991289 +0300
--- to/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2019-10-01 22:10:10.570987647 +0300
***************
*** 204,211 ****
.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
--- 204,210 ----
.method public final isRevealed()Z
.locals 1
! const/4 v0, 0x1
return v0
.end method