70 lines
1.8 KiB
Diff
70 lines
1.8 KiB
Diff
|
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 2020-09-07 10:44:48.905503584 +0100
|
||
|
--- to/smali/com/discord/models/domain/ModelMessageEmbed.smali 2020-09-07 10:45:17.861261778 +0100
|
||
|
***************
|
||
|
*** 1988,2020 ****
|
||
|
.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
|
||
|
|
||
|
--- 1988,1996 ----
|
||
|
.end method
|
||
|
|
||
|
.method public isSpoilerAttachment()Z
|
||
|
! .locals 1
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
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 2020-09-07 10:44:49.327500058 +0100
|
||
|
--- to/smali/com/discord/utilities/textprocessing/node/SpoilerNode.smali 2020-09-07 10:45:17.861261778 +0100
|
||
|
***************
|
||
|
*** 201,208 ****
|
||
|
.method public isRevealed()Z
|
||
|
.locals 1
|
||
|
|
||
|
! .line 1
|
||
|
! iget-boolean v0, p0, Lcom/discord/utilities/textprocessing/node/SpoilerNode;->isRevealed:Z
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
--- 201,207 ----
|
||
|
.method public isRevealed()Z
|
||
|
.locals 1
|
||
|
|
||
|
! const/4 v0, 0x1
|
||
|
|
||
|
return v0
|
||
|
.end method
|