cutthecord/patches/experiments/1387.patch

105 lines
3.4 KiB
Diff
Raw Normal View History

2021-01-10 02:35:35 +00:00
diff --color -crB com.discord-base/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali com.discord/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali
*** com.discord-base/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2021-01-10 03:45:24.367748629 +0300
--- com.discord/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2021-01-10 04:48:15.487174897 +0300
***************
*** 61,122 ****
.end method
.method public final invoke()Z
! .locals 4
! .line 2
! iget-object v0, p0, Lcom/discord/stores/StoreExperiments$getExperimentalAlpha$1;->this$0:Lcom/discord/stores/StoreExperiments;
! invoke-static {v0}, Lcom/discord/stores/StoreExperiments;->access$getStoreUser$p(Lcom/discord/stores/StoreExperiments;)Lcom/discord/stores/StoreUser;
!
! move-result-object v0
!
! invoke-virtual {v0}, Lcom/discord/stores/StoreUser;->getMe()Lcom/discord/models/domain/ModelUser$Me;
!
! move-result-object v0
!
! .line 3
! iget-object v1, p0, Lcom/discord/stores/StoreExperiments$getExperimentalAlpha$1;->this$0:Lcom/discord/stores/StoreExperiments;
!
! invoke-static {v1}, Lcom/discord/stores/StoreExperiments;->access$getStoreGuilds$p(Lcom/discord/stores/StoreExperiments;)Lcom/discord/stores/StoreGuilds;
!
! move-result-object v1
!
! invoke-virtual {v1}, Lcom/discord/stores/StoreGuilds;->getGuilds()Ljava/util/Map;
!
! move-result-object v1
!
! const-wide v2, 0x2bc056ab0800006L
!
! invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
!
! move-result-object v2
!
! invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
!
! move-result-object v1
!
! check-cast v1, Lcom/discord/models/domain/ModelGuild;
!
! const/4 v2, 0x1
!
! if-eqz v0, :cond_0
!
! .line 4
! invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
!
! move-result v0
!
! if-eq v0, v2, :cond_2
!
! :cond_0
! if-eqz v1, :cond_1
!
! goto :goto_0
!
! :cond_1
! const/4 v2, 0x0
!
! :cond_2
! :goto_0
! return v2
.end method
--- 61,69 ----
.end method
.method public final invoke()Z
! .locals 1
! const/4 v0, 0x1
! return v0
.end method
diff --color -crB com.discord-base/smali_classes2/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali com.discord/smali_classes2/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali
*** com.discord-base/smali_classes2/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali 2021-01-10 03:45:25.444423164 +0300
--- com.discord/smali_classes2/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali 2021-01-10 04:48:38.903984500 +0300
***************
*** 92,102 ****
if-nez p4, :cond_1
! invoke-static {p1, v1}, Lu/m/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
!
! invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
!
! move-result p4
if-eqz p4, :cond_0
--- 92,98 ----
if-nez p4, :cond_1
! const/4 p4, 0x1
if-eqz p4, :cond_0
Only in com.discord/smali_classes2/com/discord/widgets/settings: WidgetSettingsAppearance$Model$Companion$get$1.smali.orig
Only in com.discord/smali_classes2/com/discord/widgets/settings: WidgetSettingsAppearance$Model$Companion$get$1.smali.rej