cutthecord/resources/patches/experiments/87202.patch

102 lines
3.4 KiB
Diff
Raw Normal View History

2021-08-04 23:23:08 +00:00
diff -crB from/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali to/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali
*** from/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2020-12-10 17:59:07.971850829 +0000
--- to/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2020-12-10 18:09:32.190991391 +0000
***************
*** 84,147 ****
.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/user/MeUser;
!
! 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/guild/Guild;
!
! .line 4
! sget-object v2, Lcom/discord/utilities/user/UserUtils;->INSTANCE:Lcom/discord/utilities/user/UserUtils;
!
! invoke-virtual {v2, v0}, Lcom/discord/utilities/user/UserUtils;->isStaff(Lcom/discord/models/user/User;)Z
!
! move-result v0
!
! if-nez v0, :cond_1
!
! if-eqz v1, :cond_0
!
! goto :goto_0
!
! :cond_0
! const/4 v0, 0x0
!
! goto :goto_1
!
! :cond_1
! :goto_0
! const/4 v0, 0x1
!
! :goto_1
! return v0
.end method
--- 84,92 ----
.end method
.method public final invoke()Z
! .locals 1
!
! const/4 v0, 0x1
!
! return v0
.end method
diff -crB from/smali_classes2/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali to/smali_classes2/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali
*** from/smali_classes2/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali 2020-12-10 17:59:09.323866394 +0000
--- to/smali_classes2/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$1.smali 2020-12-10 18:09:56.939273259 +0000
***************
*** 121,131 ****
sget-object p3, Lcom/discord/utilities/user/UserUtils;->INSTANCE:Lcom/discord/utilities/user/UserUtils;
! invoke-static {p1, v2}, Ld0/z/d/m;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
!
! invoke-virtual {p3, p1}, Lcom/discord/utilities/user/UserUtils;->isStaff(Lcom/discord/models/user/User;)Z
!
! move-result p3
if-eqz p3, :cond_0
--- 121,127 ----
sget-object p3, Lcom/discord/utilities/user/UserUtils;->INSTANCE:Lcom/discord/utilities/user/UserUtils;
! const/4 p3, 0x1
if-eqz p3, :cond_0