cutthecord/resources/patches/nospoiler/93205.patch
2021-09-20 12:13:05 -04:00

58 lines
1.7 KiB
Diff

diff -crB from/smali/com/discord/api/message/attachment/MessageAttachment.smali to/smali/com/discord/api/message/attachment/MessageAttachment.smali
*** from/smali/com/discord/api/message/attachment/MessageAttachment.smali 2021-08-04 19:45:36.435878400 +0100
--- to/smali/com/discord/api/message/attachment/MessageAttachment.smali 2021-08-04 21:31:37.148568400 +0100
***************
*** 376,398 ****
.end method
.method public final h()Z
! .locals 5
!
! .line 1
! iget-object v0, p0, Lcom/discord/api/message/attachment/MessageAttachment;->filename:Ljava/lang/String;
!
! const-string v1, "SPOILER_"
!
! const/4 v2, 0x0
!
! const/4 v3, 0x2
!
! const/4 v4, 0x0
!
! invoke-static {v0, v1, v2, v3, v4}, Ld0/g0/t;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
!
! move-result v0
!
return v0
.end method
--- 376,383 ----
.end method
.method public final h()Z
! .locals 1
! const/4 v0, 0x0
return v0
.end method
diff -crB from/smali_classes2/com/discord/utilities/textprocessing/node/SpoilerNode.smali to/smali_classes2/com/discord/utilities/textprocessing/node/SpoilerNode.smali
*** from/smali_classes2/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2020-12-10 17:59:08.345855134 +0000
--- to/smali_classes2/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2020-12-10 18:00:01.624468003 +0000
***************
*** 249,256 ****
.method public isRevealed()Z
.locals 1
! .line 1
! iget-boolean v0, p0, Lcom/discord/utilities/textprocessing/node/SpoilerNode;->isRevealed:Z
return v0
.end method
--- 249,255 ----
.method public isRevealed()Z
.locals 1
! const/4 v0, 0x1
return v0
.end method