bluecord/patches/nospoiler/1021.patch

75 lines
2.3 KiB
Diff
Raw Normal View History

2020-01-14 12:28:31 +00:00
diff -crB com.discord-1006-base/smali/com/discord/models/domain/ModelMessageEmbed.smali com.discord-1006/smali/com/discord/models/domain/ModelMessageEmbed.smali
*** com.discord-1006-base/smali/com/discord/models/domain/ModelMessageEmbed.smali 2019-12-13 11:10:57.010789691 +0300
--- com.discord-1006/smali/com/discord/models/domain/ModelMessageEmbed.smali 2019-12-13 11:37:31.822862606 +0300
***************
*** 1901,1933 ****
.end method
.method public isSpoilerAttachment()Z
! .locals 2
!
! .line 1
! 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
!
! goto :goto_0
!
! :cond_0
const/4 v0, 0x0
- :goto_0
return v0
.end method
--- 1901,1909 ----
.end method
.method public isSpoilerAttachment()Z
! .locals 1
const/4 v0, 0x0
return v0
.end method
Only in com.discord-1006/smali/com/discord/models/domain: ModelMessageEmbed.smali.orig
Only in com.discord-1006/smali/com/discord/models/domain: ModelMessageEmbed.smali.rej
diff -crB com.discord-1006-base/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali com.discord-1006/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali
*** com.discord-1006-base/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2019-12-13 11:10:57.394125294 +0300
--- com.discord-1006/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2019-12-13 11:37:53.529645422 +0300
***************
*** 209,216 ****
.method public isRevealed()Z
.locals 1
! .line 1
! iget-boolean v0, p0, Lcom/discord/utilities/textprocessing/node/SpoilerNode;->isRevealed:Z
return v0
.end method
--- 209,215 ----
.method public isRevealed()Z
.locals 1
! const/4 v0, 0x1
return v0
.end method
Only in com.discord-1006/smali/com/discord/utilities/textprocessing/node: SpoilerNode.smali.orig
Only in com.discord-1006/smali/com/discord/utilities/textprocessing/node: SpoilerNode.smali.rej