cutthecordS/patches/experiments/888.patch

161 lines
5.1 KiB
Diff
Raw Normal View History

diff -crB -x dist -x build com.discord-876-base/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali com.discord-876/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali
*** com.discord-876-base/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2019-04-25 11:32:34.322921489 +0300
--- com.discord-876/smali/com/discord/stores/StoreExperiments$getExperimentalAlpha$1.smali 2019-04-25 11:31:28.376074491 +0300
***************
*** 81,108 ****
.method public final call(Lcom/discord/models/domain/ModelUser;Lcom/discord/models/domain/ModelGuild;)Z
.locals 1
- const-string v0, "meUser"
-
- .line 95
- invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
-
- invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
-
- move-result p1
-
- if-nez p1, :cond_1
-
- if-eqz p2, :cond_0
-
- goto :goto_0
-
- :cond_0
- const/4 p1, 0x0
-
- return p1
-
- :cond_1
- :goto_0
const/4 p1, 0x1
return p1
--- 81,86 ----
diff -crB -x dist -x build com.discord-876-base/smali/com/discord/stores/StoreExperiments.smali com.discord-876/smali/com/discord/stores/StoreExperiments.smali
*** com.discord-876-base/smali/com/discord/stores/StoreExperiments.smali 2019-04-25 11:32:34.326254832 +0300
--- com.discord-876/smali/com/discord/stores/StoreExperiments.smali 2019-04-25 11:26:39.558468377 +0300
***************
*** 1275,1326 ****
const/4 v1, 0x1
- if-eqz v0, :cond_0
-
- iget-object v0, p0, Lcom/discord/stores/StoreExperiments;->stream:Lcom/discord/stores/StoreStream;
-
- iget-object v0, v0, Lcom/discord/stores/StoreStream;->users:Lcom/discord/stores/StoreUser;
-
- iget-object v0, v0, Lcom/discord/stores/StoreUser;->me:Lcom/discord/models/domain/ModelUser$Me;
-
- if-eqz v0, :cond_0
-
- invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser$Me;->isStaff()Z
-
- move-result v0
-
- if-eq v0, v1, :cond_1
-
- :cond_0
- iget-object v0, p0, Lcom/discord/stores/StoreExperiments;->stream:Lcom/discord/stores/StoreStream;
-
- iget-object v0, v0, Lcom/discord/stores/StoreStream;->guilds:Lcom/discord/stores/StoreGuilds;
-
- iget-object v0, v0, Lcom/discord/stores/StoreGuilds;->guilds:Ljava/util/Map;
-
- const-string v2, "stream.guilds.guilds"
-
- invoke-static {v0, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
-
- const-wide v2, 0x2bc056ab0800006L
-
- invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
-
- move-result-object v2
-
- invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
-
- move-result v0
-
- if-eqz v0, :cond_2
-
- :cond_1
return v1
-
- :cond_2
- const/4 v0, 0x0
-
- return v0
.end method
.method public final isInitialized()Lrx/Observable;
--- 1275,1281 ----
diff -crB -x dist -x build com.discord-876-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2.smali com.discord-876/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2.smali
*** com.discord-876-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2.smali 2019-04-25 11:32:35.082923567 +0300
--- com.discord-876/smali/com/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2.smali 2019-04-25 11:28:58.758998696 +0300
***************
*** 108,118 ****
const-string v0, "meUser"
.line 206
! invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
!
! invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
!
! move-result v2
.line 207
invoke-virtual {p3}, Ljava/lang/Boolean;->booleanValue()Z
--- 108,114 ----
const-string v0, "meUser"
.line 206
! const/4 v2, 0x1
.line 207
invoke-virtual {p3}, Ljava/lang/Boolean;->booleanValue()Z
***************
*** 124,134 ****
const-string p3, "fontScale"
.line 208
! invoke-static {p4, p3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
!
! invoke-virtual {p4}, Ljava/lang/Integer;->intValue()I
!
! move-result v4
const-string p3, "isAlphaTesterOrStaff"
--- 120,126 ----
const-string p3, "fontScale"
.line 208
! const/4 v4, 0x1
const-string p3, "isAlphaTesterOrStaff"
diff -crB -x dist -x build com.discord-876-base/smali/com/discord/widgets/settings/WidgetSettings.smali com.discord-876/smali/com/discord/widgets/settings/WidgetSettings.smali
*** com.discord-876-base/smali/com/discord/widgets/settings/WidgetSettings.smali 2019-04-25 11:32:35.089590253 +0300
--- com.discord-876/smali/com/discord/widgets/settings/WidgetSettings.smali 2019-04-25 11:29:18.509052701 +0300
***************
*** 783,791 ****
if-eqz p1, :cond_1
.line 121
! invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
!
! move-result v2
if-eq v2, v0, :cond_0
--- 783,789 ----
if-eqz p1, :cond_1
.line 121
! const/4 v2, 0x1
if-eq v2, v0, :cond_0