This repository has been archived on 2021-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
cutthecord/resources/patches/nospoiler/996.patch

70 lines
2.1 KiB
Diff
Raw Normal View History

2019-12-05 08:26:53 +00:00
diff -crB com.discord-984-base/smali/com/discord/models/domain/ModelMessageEmbed.smali com.discord-984/smali/com/discord/models/domain/ModelMessageEmbed.smali
*** com.discord-984-base/smali/com/discord/models/domain/ModelMessageEmbed.smali 2019-11-14 22:32:20.929850045 +0300
--- com.discord-984/smali/com/discord/models/domain/ModelMessageEmbed.smali 2019-11-14 22:57:57.018355085 +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 com.discord-984-base/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali com.discord-984/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali
*** com.discord-984-base/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2019-11-14 22:32:21.443186186 +0300
--- com.discord-984/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2019-11-14 22:58:12.061779249 +0300
***************
*** 203,211 ****
.method public final isRevealed()Z
.locals 1
!
! .line 22
! iget-boolean v0, p0, Lcom/discord/utilities/textprocessing/node/SpoilerNode;->isRevealed:Z
return v0
.end method
--- 203,210 ----
.method public final isRevealed()Z
.locals 1
!
! const/4 v0, 0x1
return v0
.end method
Only in com.discord-984/smali/com/discord/utilities/textprocessing/node: SpoilerNode.smali.orig
Only in com.discord-984/smali/com/discord/utilities/textprocessing/node: SpoilerNode.smali.rej