80.11 - Stable (80011)

This commit is contained in:
Juby210 2021-06-28 00:10:28 +02:00
parent a22a01967d
commit c58955c4b0
Signed by untrusted user: Juby210
GPG key ID: F459CEC5C92E1482
198 changed files with 955 additions and 1172 deletions

View file

@ -10,8 +10,8 @@ android {
applicationId 'com.discord' applicationId 'com.discord'
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode 80108 versionCode 80011
versionName "80.8 - Beta" versionName "80.11 - Stable"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="80108" android:versionName="80.8 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11"> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="80011" android:versionName="80.11 - Stable" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/> <uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
@ -37,7 +37,7 @@
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/> <uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application android:theme="@style/res_2131951648_apptheme_dark" android:label="@string/discord" android:icon="@mipmap/ic_logo_square_beta" android:name="com.discord.app.App" android:allowBackup="false" android:largeHeap="true" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_logo_round_beta" android:appCategory="social" android:appComponentFactory="androidx.core.app.CoreComponentFactory"> <application android:theme="@style/res_2131951648_apptheme_dark" android:label="@string/discord" android:icon="@mipmap/ic_logo_square" android:name="com.discord.app.App" android:allowBackup="false" android:largeHeap="true" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_logo_round" android:appCategory="social" android:appComponentFactory="androidx.core.app.CoreComponentFactory">
<activity android:theme="@style/res_2131951672_apptheme_translucent" android:name="com.discord.samsung.SamsungConnectActivity"/> <activity android:theme="@style/res_2131951672_apptheme_translucent" android:name="com.discord.samsung.SamsungConnectActivity"/>
<activity android:theme="@style/res_2131951648_apptheme_dark" android:name="com.discord.app.AppActivity" android:screenOrientation="fullUser" android:windowSoftInputMode="stateHidden|adjustResize"/> <activity android:theme="@style/res_2131951648_apptheme_dark" android:name="com.discord.app.AppActivity" android:screenOrientation="fullUser" android:windowSoftInputMode="stateHidden|adjustResize"/>
<activity android:theme="@style/res_2131951662_apptheme_loading" android:name="com.discord.app.AppActivity$Main" android:exported="true" android:launchMode="singleTask" android:screenOrientation="fullUser" android:windowSoftInputMode="stateHidden|adjustResize"> <activity android:theme="@style/res_2131951662_apptheme_loading" android:name="com.discord.app.AppActivity$Main" android:exported="true" android:launchMode="singleTask" android:screenOrientation="fullUser" android:windowSoftInputMode="stateHidden|adjustResize">

View file

@ -30,7 +30,7 @@ public final class s extends o implements Function1<ModelInvite, Unit> {
String link = modelInvite2.toLink(this.this$0.getResources(), "https://discord.gg"); String link = modelInvite2.toLink(this.this$0.getResources(), "https://discord.gg");
m.checkNotNullExpressionValue(link, "invite.toLink(resources, BuildConfig.HOST_INVITE)"); m.checkNotNullExpressionValue(link, "invite.toLink(resources, BuildConfig.HOST_INVITE)");
c.a.d.o.a(context, link, 2131890519); c.a.d.o.a(context, link, 2131890519);
this.this$0.getOnDismissRequested$app_productionBetaRelease().mo1invoke(); this.this$0.getOnDismissRequested$app_productionGoogleRelease().mo1invoke();
return Unit.a; return Unit.a;
} }
} }

View file

@ -71,7 +71,7 @@ public final class v extends OverlayBubbleWrap implements AppComponent {
if (voiceUser2 == null) { if (voiceUser2 == null) {
vVar.h(); vVar.h();
} else { } else {
IconUtils.setIcon$default(vVar.getImageView$app_productionBetaRelease(), voiceUser2.getUser(), 0, null, null, null, 60, null); IconUtils.setIcon$default(vVar.getImageView$app_productionGoogleRelease(), voiceUser2.getUser(), 0, null, null, null, 60, null);
vVar.g(); vVar.g();
} }
return Unit.a; return Unit.a;
@ -108,10 +108,10 @@ public final class v extends OverlayBubbleWrap implements AppComponent {
} }
public final void g() { public final void g() {
getImageView$app_productionBetaRelease().animate().setDuration(100).alpha(1.0f).start(); getImageView$app_productionGoogleRelease().animate().setDuration(100).alpha(1.0f).start();
} }
public final SimpleDraweeView getImageView$app_productionBetaRelease() { public final SimpleDraweeView getImageView$app_productionGoogleRelease() {
SimpleDraweeView simpleDraweeView = this.f236x.b; SimpleDraweeView simpleDraweeView = this.f236x.b;
m.checkNotNullExpressionValue(simpleDraweeView, "binding.overlayBubbleIv"); m.checkNotNullExpressionValue(simpleDraweeView, "binding.overlayBubbleIv");
return simpleDraweeView; return simpleDraweeView;
@ -123,7 +123,7 @@ public final class v extends OverlayBubbleWrap implements AppComponent {
} }
public final void h() { public final void h() {
getImageView$app_productionBetaRelease().animate().setDuration(200).alpha(0.5f).start(); getImageView$app_productionGoogleRelease().animate().setDuration(200).alpha(0.5f).start();
} }
@Override // android.view.View, android.view.ViewGroup @Override // android.view.View, android.view.ViewGroup

View file

@ -43,7 +43,7 @@ import kotlin.jvm.functions.Function3;
import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: App.kt */ /* compiled from: App.kt */
public class App extends Application { public class App extends Application {
public static final boolean i = w.contains$default((CharSequence) "productionBeta", (CharSequence) "local", false, 2, (Object) null); public static final boolean i = w.contains$default((CharSequence) "productionGoogle", (CharSequence) "local", false, 2, (Object) null);
public static final a j = new a(null); public static final a j = new a(null);
/* compiled from: App.kt */ /* compiled from: App.kt */
@ -172,7 +172,7 @@ public class App extends Application {
loggingProvider.init(appLog); loggingProvider.init(appLog);
c.i.c.c.e(this); c.i.c.c.e(this);
String str = null; String str = null;
if (BuildUtils.INSTANCE.isValidBuildVersionName("80.8 - Beta")) { if (BuildUtils.INSTANCE.isValidBuildVersionName("80.11 - Stable")) {
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true); FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true);
} else { } else {
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(false); FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(false);

View file

@ -196,8 +196,8 @@ public final class DiscordConnectService extends Service {
return 2; return 2;
} }
StoreStream.Companion companion = StoreStream.Companion; StoreStream.Companion companion = StoreStream.Companion;
String authToken$app_productionBetaRelease = companion.getAuthentication().getAuthToken$app_productionBetaRelease(); String authToken$app_productionGoogleRelease = companion.getAuthentication().getAuthToken$app_productionGoogleRelease();
if (authToken$app_productionBetaRelease == null || t.isBlank(authToken$app_productionBetaRelease)) { if (authToken$app_productionGoogleRelease == null || t.isBlank(authToken$app_productionGoogleRelease)) {
c.a.d.o.g(this, 2131891693, 0, null, 12); c.a.d.o.g(this, 2131891693, 0, null, 12);
observable2 = Observable.x(new IllegalStateException("UNAUTHED")); observable2 = Observable.x(new IllegalStateException("UNAUTHED"));
m.checkNotNullExpressionValue(observable2, "Observable.error(Illegal…ateException(\"UNAUTHED\"))"); m.checkNotNullExpressionValue(observable2, "Observable.error(Illegal…ateException(\"UNAUTHED\"))");

View file

@ -566,8 +566,8 @@ public final class ReadyPayloadUtils {
com.discord.models.guild.Guild guild = (com.discord.models.guild.Guild) it.next(); com.discord.models.guild.Guild guild = (com.discord.models.guild.Guild) it.next();
Map<Long, GuildRole> map = roles.get(Long.valueOf(guild.getId())); Map<Long, GuildRole> map = roles.get(Long.valueOf(guild.getId()));
Collection<GuildRole> values = map != null ? map.values() : null; Collection<GuildRole> values = map != null ? map.values() : null;
Map<Long, Channel> channelsForGuildInternal$app_productionBetaRelease = storeChannels.getChannelsForGuildInternal$app_productionBetaRelease(guild.getId()); Map<Long, Channel> channelsForGuildInternal$app_productionGoogleRelease = storeChannels.getChannelsForGuildInternal$app_productionGoogleRelease(guild.getId());
Collection<Channel> values2 = channelsForGuildInternal$app_productionBetaRelease != null ? channelsForGuildInternal$app_productionBetaRelease.values() : null; Collection<Channel> values2 = channelsForGuildInternal$app_productionGoogleRelease != null ? channelsForGuildInternal$app_productionGoogleRelease.values() : null;
Map<Long, ModelEmojiCustom> emojiForGuildInternal = storeEmojiCustom.getEmojiForGuildInternal(guild.getId()); Map<Long, ModelEmojiCustom> emojiForGuildInternal = storeEmojiCustom.getEmojiForGuildInternal(guild.getId());
Collection<ModelEmojiCustom> values3 = emojiForGuildInternal != null ? emojiForGuildInternal.values() : null; Collection<ModelEmojiCustom> values3 = emojiForGuildInternal != null ? emojiForGuildInternal.values() : null;
Collection<Sticker> values4 = storeGuildStickers.getStickersForGuild(guild.getId()).values(); Collection<Sticker> values4 = storeGuildStickers.getStickersForGuild(guild.getId()).values();

View file

@ -41,9 +41,9 @@ public final class StoreAnalytics$ackMessage$1 extends o implements Function0<Un
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
Channel findChannelByIdInternal$app_productionBetaRelease = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(this.$channelId); Channel findChannelByIdInternal$app_productionGoogleRelease = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(this.$channelId);
if (findChannelByIdInternal$app_productionBetaRelease != null) { if (findChannelByIdInternal$app_productionGoogleRelease != null) {
AnalyticsTracker.INSTANCE.ackMessage(findChannelByIdInternal$app_productionBetaRelease, new AnonymousClass1(h0.plus(StoreAnalytics.access$getGuildAnalyticsPropertiesInternal(this.this$0, findChannelByIdInternal$app_productionBetaRelease.e()), StoreAnalytics.getChannelSnapshotAnalyticsProperties$default(this.this$0, findChannelByIdInternal$app_productionBetaRelease, false, 2, (Object) null)))); AnalyticsTracker.INSTANCE.ackMessage(findChannelByIdInternal$app_productionGoogleRelease, new AnonymousClass1(h0.plus(StoreAnalytics.access$getGuildAnalyticsPropertiesInternal(this.this$0, findChannelByIdInternal$app_productionGoogleRelease.e()), StoreAnalytics.getChannelSnapshotAnalyticsProperties$default(this.this$0, findChannelByIdInternal$app_productionGoogleRelease, false, 2, (Object) null))));
} }
} }
} }

View file

@ -60,7 +60,7 @@ public final class StoreAnalytics$onNotificationSettingsUpdated$1 extends o impl
l = null; l = null;
} }
if (l != null) { if (l != null) {
channel = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(l.longValue()); channel = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(l.longValue());
} }
} }
AnalyticsTracker.INSTANCE.notificationSettingsUpdated(this.$notifSettings, channel); AnalyticsTracker.INSTANCE.notificationSettingsUpdated(this.$notifSettings, channel);

View file

@ -25,8 +25,8 @@ public final class StoreAnalytics$onOverlayVoiceEvent$1 extends o implements Fun
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
Map<String, String> map; Map<String, String> map;
RtcConnection rtcConnection$app_productionBetaRelease = StoreAnalytics.access$getStores$p(this.this$0).getRtcConnection$app_productionBetaRelease().getRtcConnection$app_productionBetaRelease(); RtcConnection rtcConnection$app_productionGoogleRelease = StoreAnalytics.access$getStores$p(this.this$0).getRtcConnection$app_productionGoogleRelease().getRtcConnection$app_productionGoogleRelease();
if (rtcConnection$app_productionBetaRelease == null || (map = AnalyticsUtils.INSTANCE.getProperties$app_productionBetaRelease(rtcConnection$app_productionBetaRelease)) == null) { if (rtcConnection$app_productionGoogleRelease == null || (map = AnalyticsUtils.INSTANCE.getProperties$app_productionGoogleRelease(rtcConnection$app_productionGoogleRelease)) == null) {
map = h0.emptyMap(); map = h0.emptyMap();
} }
if (this.$isActive) { if (this.$isActive) {
@ -39,7 +39,7 @@ public final class StoreAnalytics$onOverlayVoiceEvent$1 extends o implements Fun
Map plus = h0.plus(access$getGuildAnalyticsPropertiesInternal, map); Map plus = h0.plus(access$getGuildAnalyticsPropertiesInternal, map);
Channel access$getSelectedVoiceChannel$p2 = StoreAnalytics.access$getSelectedVoiceChannel$p(this.this$0); Channel access$getSelectedVoiceChannel$p2 = StoreAnalytics.access$getSelectedVoiceChannel$p(this.this$0);
if (access$getSelectedVoiceChannel$p2 != null) { if (access$getSelectedVoiceChannel$p2 != null) {
map2 = AnalyticsUtils.INSTANCE.getProperties$app_productionBetaRelease(access$getSelectedVoiceChannel$p2); map2 = AnalyticsUtils.INSTANCE.getProperties$app_productionGoogleRelease(access$getSelectedVoiceChannel$p2);
} }
if (map2 == null) { if (map2 == null) {
map2 = h0.emptyMap(); map2 = h0.emptyMap();

View file

@ -27,7 +27,7 @@ public final class StoreAnalytics$onScreenViewed$1 extends o implements Function
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
Class<? extends AppComponent> screen = this.$screenViewed.getScreen(); Class<? extends AppComponent> screen = this.$screenViewed.getScreen();
String simpleName = m.areEqual(screen, WidgetHome.class) ? StoreAnalytics.access$getStores$p(this.this$0).getGuildSelected$app_productionBetaRelease().getSelectedGuildId() == 0 ? "private_channel" : "guild" : m.areEqual(screen, WidgetGuildInvite.class) ? "invite" : m.areEqual(screen, WidgetIncomingShare.class) ? "share" : m.areEqual(screen, WidgetAuthLanding.class) ? "app_landing" : this.$screenViewed.getScreen().getSimpleName(); String simpleName = m.areEqual(screen, WidgetHome.class) ? StoreAnalytics.access$getStores$p(this.this$0).getGuildSelected$app_productionGoogleRelease().getSelectedGuildId() == 0 ? "private_channel" : "guild" : m.areEqual(screen, WidgetGuildInvite.class) ? "invite" : m.areEqual(screen, WidgetIncomingShare.class) ? "share" : m.areEqual(screen, WidgetAuthLanding.class) ? "app_landing" : this.$screenViewed.getScreen().getSimpleName();
AppStartAnalyticsTracker instance = AppStartAnalyticsTracker.Companion.getInstance(); AppStartAnalyticsTracker instance = AppStartAnalyticsTracker.Companion.getInstance();
m.checkNotNullExpressionValue(simpleName, "screenName"); m.checkNotNullExpressionValue(simpleName, "screenName");
instance.appUiViewed(simpleName, this.$screenViewed.getTimestamp()); instance.appUiViewed(simpleName, this.$screenViewed.getTimestamp());

View file

@ -29,15 +29,15 @@ public final class StoreAnalytics$onThreadNotificationSettingsUpdated$1 extends
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
Channel findChannelByIdInternal$app_productionBetaRelease; Channel findChannelByIdInternal$app_productionGoogleRelease;
ModelNotificationSettings modelNotificationSettings; ModelNotificationSettings modelNotificationSettings;
Channel findChannelByIdInternal$app_productionBetaRelease2 = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(this.$channelId); Channel findChannelByIdInternal$app_productionGoogleRelease2 = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(this.$channelId);
if (findChannelByIdInternal$app_productionBetaRelease2 != null && (findChannelByIdInternal$app_productionBetaRelease = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(this.$parentChannelId)) != null) { if (findChannelByIdInternal$app_productionGoogleRelease2 != null && (findChannelByIdInternal$app_productionGoogleRelease = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(this.$parentChannelId)) != null) {
boolean z2 = (this.$oldFlags & 1) != 0; boolean z2 = (this.$oldFlags & 1) != 0;
long e = findChannelByIdInternal$app_productionBetaRelease2.e(); long e = findChannelByIdInternal$app_productionGoogleRelease2.e();
Guild guild = StoreAnalytics.access$getStores$p(this.this$0).getGuilds$app_productionBetaRelease().getGuild(e); Guild guild = StoreAnalytics.access$getStores$p(this.this$0).getGuilds$app_productionGoogleRelease().getGuild(e);
if (guild != null && (modelNotificationSettings = StoreAnalytics.access$getStores$p(this.this$0).getGuildSettings$app_productionBetaRelease().getGuildSettingsInternal$app_productionBetaRelease().get(Long.valueOf(e))) != null) { if (guild != null && (modelNotificationSettings = StoreAnalytics.access$getStores$p(this.this$0).getGuildSettings$app_productionGoogleRelease().getGuildSettingsInternal$app_productionGoogleRelease().get(Long.valueOf(e))) != null) {
AnalyticsTracker.INSTANCE.threadNotificationSettingsUpdated(StoreAnalytics.access$getThreadSnapshotAnalyticsProperties(this.this$0, findChannelByIdInternal$app_productionBetaRelease2), z2, NotificationTextUtils.INSTANCE.isGuildOrCategoryOrChannelMuted(modelNotificationSettings, findChannelByIdInternal$app_productionBetaRelease), ChannelNotificationSettingsUtils.INSTANCE.computeNotificationSetting(guild, findChannelByIdInternal$app_productionBetaRelease2, modelNotificationSettings), this.$oldFlags, this.$flags); AnalyticsTracker.INSTANCE.threadNotificationSettingsUpdated(StoreAnalytics.access$getThreadSnapshotAnalyticsProperties(this.this$0, findChannelByIdInternal$app_productionGoogleRelease2), z2, NotificationTextUtils.INSTANCE.isGuildOrCategoryOrChannelMuted(modelNotificationSettings, findChannelByIdInternal$app_productionGoogleRelease), ChannelNotificationSettingsUtils.INSTANCE.computeNotificationSetting(guild, findChannelByIdInternal$app_productionGoogleRelease2, modelNotificationSettings), this.$oldFlags, this.$flags);
} }
} }
} }

View file

@ -26,18 +26,18 @@ public final class StoreAnalytics$trackCallReportProblem$1 extends o implements
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
long id2 = StoreAnalytics.access$getStores$p(this.this$0).getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId(); long id2 = StoreAnalytics.access$getStores$p(this.this$0).getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId();
Channel findChannelByIdInternal$app_productionBetaRelease = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(this.$pendingCallFeedback.getChannelId()); Channel findChannelByIdInternal$app_productionGoogleRelease = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(this.$pendingCallFeedback.getChannelId());
if (findChannelByIdInternal$app_productionBetaRelease != null) { if (findChannelByIdInternal$app_productionGoogleRelease != null) {
StoreMediaSettings mediaSettings$app_productionBetaRelease = StoreAnalytics.access$getStores$p(this.this$0).getMediaSettings$app_productionBetaRelease(); StoreMediaSettings mediaSettings$app_productionGoogleRelease = StoreAnalytics.access$getStores$p(this.this$0).getMediaSettings$app_productionGoogleRelease();
StoreAudioDevices.OutputDevice selectedOutputDevice = StoreAnalytics.access$getStores$p(this.this$0).getAudioDevices$app_productionBetaRelease().getEnabled() ? StoreAnalytics.access$getStores$p(this.this$0).getAudioDevices$app_productionBetaRelease().getAudioDevicesState$app_productionBetaRelease().getSelectedOutputDevice() : StoreAudioManagerV2.Companion.outputDeviceFromAudioDevice$app_productionBetaRelease(StoreAnalytics.access$getStores$p(this.this$0).getAudioManagerV2$app_productionBetaRelease().getLastActiveAudioDevice$app_productionBetaRelease()); StoreAudioDevices.OutputDevice selectedOutputDevice = StoreAnalytics.access$getStores$p(this.this$0).getAudioDevices$app_productionGoogleRelease().getEnabled() ? StoreAnalytics.access$getStores$p(this.this$0).getAudioDevices$app_productionGoogleRelease().getAudioDevicesState$app_productionGoogleRelease().getSelectedOutputDevice() : StoreAudioManagerV2.Companion.outputDeviceFromAudioDevice$app_productionGoogleRelease(StoreAnalytics.access$getStores$p(this.this$0).getAudioManagerV2$app_productionGoogleRelease().getLastActiveAudioDevice$app_productionGoogleRelease());
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String rtcConnectionId = this.$pendingCallFeedback.getRtcConnectionId(); String rtcConnectionId = this.$pendingCallFeedback.getRtcConnectionId();
Map<Long, VoiceState> map = (Map) a.c(findChannelByIdInternal$app_productionBetaRelease, StoreAnalytics.access$getStores$p(this.this$0).getVoiceStates$app_productionBetaRelease().get()); Map<Long, VoiceState> map = (Map) a.c(findChannelByIdInternal$app_productionGoogleRelease, StoreAnalytics.access$getStores$p(this.this$0).getVoiceStates$app_productionGoogleRelease().get());
if (map == null) { if (map == null) {
map = h0.emptyMap(); map = h0.emptyMap();
} }
analyticsTracker.callReportProblem(id2, rtcConnectionId, findChannelByIdInternal$app_productionBetaRelease, map, this.$pendingCallFeedback.getDurationMs(), this.$pendingCallFeedback.getMediaSessionId(), this.$pendingCallFeedback.getFeedbackRating(), this.$pendingCallFeedback.getReasonCode(), this.$pendingCallFeedback.getReasonDescription(), mediaSettings$app_productionBetaRelease.getVoiceConfigurationBlocking(), selectedOutputDevice, mediaSettings$app_productionBetaRelease.getVideoHardwareScalingBlocking(), this.$pendingCallFeedback.getIssueDetails()); analyticsTracker.callReportProblem(id2, rtcConnectionId, findChannelByIdInternal$app_productionGoogleRelease, map, this.$pendingCallFeedback.getDurationMs(), this.$pendingCallFeedback.getMediaSessionId(), this.$pendingCallFeedback.getFeedbackRating(), this.$pendingCallFeedback.getReasonCode(), this.$pendingCallFeedback.getReasonDescription(), mediaSettings$app_productionGoogleRelease.getVoiceConfigurationBlocking(), selectedOutputDevice, mediaSettings$app_productionGoogleRelease.getVideoHardwareScalingBlocking(), this.$pendingCallFeedback.getIssueDetails());
} }
} }
} }

View file

@ -20,6 +20,6 @@ public final class StoreAnalytics$trackMediaSessionJoined$1 extends o implements
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
AnalyticsTracker.INSTANCE.mediaSessionJoined(this.$properties, StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(StoreAnalytics.access$getStores$p(this.this$0).getVoiceChannelSelected$app_productionBetaRelease().getLastSelectedVoiceChannelId())); AnalyticsTracker.INSTANCE.mediaSessionJoined(this.$properties, StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(StoreAnalytics.access$getStores$p(this.this$0).getVoiceChannelSelected$app_productionGoogleRelease().getLastSelectedVoiceChannelId()));
} }
} }

View file

@ -25,10 +25,10 @@ public final class StoreAnalytics$trackOpenGiftAcceptModal$1 extends o implement
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
StoreGifting.GiftState giftState = StoreAnalytics.access$getStores$p(this.this$0).getGifting$app_productionBetaRelease().getKnownGifts().get(this.$giftCode); StoreGifting.GiftState giftState = StoreAnalytics.access$getStores$p(this.this$0).getGifting$app_productionGoogleRelease().getKnownGifts().get(this.$giftCode);
ModelGift gift = giftState instanceof StoreGifting.GiftState.Resolved ? ((StoreGifting.GiftState.Resolved) giftState).getGift() : giftState instanceof StoreGifting.GiftState.Redeeming ? ((StoreGifting.GiftState.Redeeming) giftState).getGift() : giftState instanceof StoreGifting.GiftState.RedeemedFailed ? ((StoreGifting.GiftState.RedeemedFailed) giftState).getGift() : null; ModelGift gift = giftState instanceof StoreGifting.GiftState.Resolved ? ((StoreGifting.GiftState.Resolved) giftState).getGift() : giftState instanceof StoreGifting.GiftState.Redeeming ? ((StoreGifting.GiftState.Redeeming) giftState).getGift() : giftState instanceof StoreGifting.GiftState.RedeemedFailed ? ((StoreGifting.GiftState.RedeemedFailed) giftState).getGift() : null;
if (gift != null) { if (gift != null) {
AnalyticsTracker.openGiftModal(gift, StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(this.$channelId), this.$location); AnalyticsTracker.openGiftModal(gift, StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(this.$channelId), this.$location);
} }
} }
} }

View file

@ -20,9 +20,9 @@ public final class StoreAnalytics$trackShowCallFeedbackSheet$1 extends o impleme
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
Channel findChannelByIdInternal$app_productionBetaRelease = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(this.$channelId); Channel findChannelByIdInternal$app_productionGoogleRelease = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(this.$channelId);
if (findChannelByIdInternal$app_productionBetaRelease != null) { if (findChannelByIdInternal$app_productionGoogleRelease != null) {
AnalyticsTracker.INSTANCE.openCallFeedbackSheet(findChannelByIdInternal$app_productionBetaRelease.e(), findChannelByIdInternal$app_productionBetaRelease.g(), findChannelByIdInternal$app_productionBetaRelease.z()); AnalyticsTracker.INSTANCE.openCallFeedbackSheet(findChannelByIdInternal$app_productionGoogleRelease.e(), findChannelByIdInternal$app_productionGoogleRelease.g(), findChannelByIdInternal$app_productionGoogleRelease.z());
} }
} }
} }

View file

@ -20,6 +20,6 @@ public final class StoreAnalytics$trackVoiceConnectionFailure$1 extends o implem
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
AnalyticsTracker.INSTANCE.voiceConnectionFailure(this.$properties, StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(StoreAnalytics.access$getStores$p(this.this$0).getVoiceChannelSelected$app_productionBetaRelease().getSelectedVoiceChannelId()), StoreAnalytics.access$getStores$p(this.this$0).getRtcRegion$app_productionBetaRelease().getPreferredRegion()); AnalyticsTracker.INSTANCE.voiceConnectionFailure(this.$properties, StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(StoreAnalytics.access$getStores$p(this.this$0).getVoiceChannelSelected$app_productionGoogleRelease().getSelectedVoiceChannelId()), StoreAnalytics.access$getStores$p(this.this$0).getRtcRegion$app_productionGoogleRelease().getPreferredRegion());
} }
} }

View file

@ -41,7 +41,7 @@ public final class StoreAnalytics$trackVoiceConnectionSuccess$1 extends o implem
m.checkNotNullParameter(audioInfo, "audioInfo"); m.checkNotNullParameter(audioInfo, "audioInfo");
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
StoreAnalytics$trackVoiceConnectionSuccess$1 storeAnalytics$trackVoiceConnectionSuccess$1 = this.this$0; StoreAnalytics$trackVoiceConnectionSuccess$1 storeAnalytics$trackVoiceConnectionSuccess$1 = this.this$0;
analyticsTracker.voiceConnectionSuccess(storeAnalytics$trackVoiceConnectionSuccess$1.$properties, audioInfo, this.$channel, StoreAnalytics.access$getStores$p(storeAnalytics$trackVoiceConnectionSuccess$1.this$0).getRtcRegion$app_productionBetaRelease().getPreferredRegion()); analyticsTracker.voiceConnectionSuccess(storeAnalytics$trackVoiceConnectionSuccess$1.$properties, audioInfo, this.$channel, StoreAnalytics.access$getStores$p(storeAnalytics$trackVoiceConnectionSuccess$1.this$0).getRtcRegion$app_productionGoogleRelease().getPreferredRegion());
} }
} }
@ -55,6 +55,6 @@ public final class StoreAnalytics$trackVoiceConnectionSuccess$1 extends o implem
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(StoreAnalytics.access$getStores$p(this.this$0).getMediaEngine$app_productionBetaRelease().getMediaEngine().f()), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this, StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(StoreAnalytics.access$getStores$p(this.this$0).getVoiceChannelSelected$app_productionBetaRelease().getSelectedVoiceChannelId())), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(StoreAnalytics.access$getStores$p(this.this$0).getMediaEngine$app_productionGoogleRelease().getMediaEngine().f()), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this, StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(StoreAnalytics.access$getStores$p(this.this$0).getVoiceChannelSelected$app_productionGoogleRelease().getSelectedVoiceChannelId())), 62, (Object) null);
} }
} }

View file

@ -20,6 +20,6 @@ public final class StoreAnalytics$trackVoiceDisconnect$1 extends o implements Fu
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
AnalyticsTracker.INSTANCE.voiceDisconnect(this.$properties, StoreAnalytics.access$getStores$p(this.this$0).getMediaSettings$app_productionBetaRelease().getVoiceConfigurationBlocking(), StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(StoreAnalytics.access$getStores$p(this.this$0).getVoiceChannelSelected$app_productionBetaRelease().getLastSelectedVoiceChannelId()), StoreAnalytics.access$getStores$p(this.this$0).getRtcRegion$app_productionBetaRelease().getPreferredRegion()); AnalyticsTracker.INSTANCE.voiceDisconnect(this.$properties, StoreAnalytics.access$getStores$p(this.this$0).getMediaSettings$app_productionGoogleRelease().getVoiceConfigurationBlocking(), StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(StoreAnalytics.access$getStores$p(this.this$0).getVoiceChannelSelected$app_productionGoogleRelease().getLastSelectedVoiceChannelId()), StoreAnalytics.access$getStores$p(this.this$0).getRtcRegion$app_productionGoogleRelease().getPreferredRegion());
} }
} }

View file

@ -210,7 +210,7 @@ public final class StoreAnalytics extends Store {
String str; String str;
int ordinal = emojiPickerContextType.ordinal(); int ordinal = emojiPickerContextType.ordinal();
if (ordinal == 0) { if (ordinal == 0) {
Channel channel = this.stores.getChannels$app_productionBetaRelease().getChannel(this.stores.getChannelsSelected$app_productionBetaRelease().getId()); Channel channel = this.stores.getChannels$app_productionGoogleRelease().getChannel(this.stores.getChannelsSelected$app_productionGoogleRelease().getId());
str = (channel == null || channel.e() != 0) ? "Guild Channel" : "DM Channel"; str = (channel == null || channel.e() != 0) ? "Guild Channel" : "DM Channel";
} else if (ordinal == 1) { } else if (ordinal == 1) {
str = "Custom Status Modal"; str = "Custom Status Modal";
@ -230,7 +230,7 @@ public final class StoreAnalytics extends Store {
} }
private final Map<String, Object> getChannelSnapshotAnalyticsProperties(long j, boolean z2) { private final Map<String, Object> getChannelSnapshotAnalyticsProperties(long j, boolean z2) {
Channel channel = this.stores.getChannels$app_productionBetaRelease().getChannel(j); Channel channel = this.stores.getChannels$app_productionGoogleRelease().getChannel(j);
Map<String, Object> channelSnapshotAnalyticsProperties = channel != null ? getChannelSnapshotAnalyticsProperties(channel, z2) : null; Map<String, Object> channelSnapshotAnalyticsProperties = channel != null ? getChannelSnapshotAnalyticsProperties(channel, z2) : null;
return channelSnapshotAnalyticsProperties != null ? channelSnapshotAnalyticsProperties : h0.emptyMap(); return channelSnapshotAnalyticsProperties != null ? channelSnapshotAnalyticsProperties : h0.emptyMap();
} }
@ -239,7 +239,7 @@ public final class StoreAnalytics extends Store {
PermissionOverwrite permissionOverwrite; PermissionOverwrite permissionOverwrite;
Object obj; Object obj;
boolean z3; boolean z3;
Long l = (Long) a.d(channel, this.stores.getPermissions$app_productionBetaRelease().getPermissionsByChannel()); Long l = (Long) a.d(channel, this.stores.getPermissions$app_productionGoogleRelease().getPermissionsByChannel());
List<PermissionOverwrite> r = channel.r(); List<PermissionOverwrite> r = channel.r();
Boolean bool = null; Boolean bool = null;
if (r != null) { if (r != null) {
@ -268,7 +268,7 @@ public final class StoreAnalytics extends Store {
if (permissionOverwrite != null) { if (permissionOverwrite != null) {
bool = Boolean.valueOf(PermissionOverwriteUtilsKt.denies(permissionOverwrite, 1024)); bool = Boolean.valueOf(PermissionOverwriteUtilsKt.denies(permissionOverwrite, 1024));
} }
return h0.plus(h0.plus(AnalyticsUtils.INSTANCE.getProperties$app_productionBetaRelease(channel), h0.mapOf(o.to("channel_member_perms", l), o.to("channel_hidden", bool))), z2 ? g0.mapOf(o.to("channel_is_nsfw", Boolean.valueOf(channel.n()))) : h0.emptyMap()); return h0.plus(h0.plus(AnalyticsUtils.INSTANCE.getProperties$app_productionGoogleRelease(channel), h0.mapOf(o.to("channel_member_perms", l), o.to("channel_hidden", bool))), z2 ? g0.mapOf(o.to("channel_is_nsfw", Boolean.valueOf(channel.n()))) : h0.emptyMap());
} }
public static /* synthetic */ Map getChannelSnapshotAnalyticsProperties$default(StoreAnalytics storeAnalytics, long j, boolean z2, int i, Object obj) { public static /* synthetic */ Map getChannelSnapshotAnalyticsProperties$default(StoreAnalytics storeAnalytics, long j, boolean z2, int i, Object obj) {
@ -290,26 +290,26 @@ public final class StoreAnalytics extends Store {
Collection<Channel> collection; Collection<Channel> collection;
GuildMember guildMember; GuildMember guildMember;
List<Long> roles; List<Long> roles;
Guild guild = this.stores.getGuilds$app_productionBetaRelease().getGuildsInternal$app_productionBetaRelease().get(Long.valueOf(j)); Guild guild = this.stores.getGuilds$app_productionGoogleRelease().getGuildsInternal$app_productionGoogleRelease().get(Long.valueOf(j));
if (guild == null) { if (guild == null) {
return new HashMap(); return new HashMap();
} }
int approximateMemberCount = this.stores.getGuildMemberCounts$app_productionBetaRelease().getApproximateMemberCount(j); int approximateMemberCount = this.stores.getGuildMemberCounts$app_productionGoogleRelease().getApproximateMemberCount(j);
Map<Long, Channel> channelsForGuildInternal$app_productionBetaRelease = this.stores.getChannels$app_productionBetaRelease().getChannelsForGuildInternal$app_productionBetaRelease(j); Map<Long, Channel> channelsForGuildInternal$app_productionGoogleRelease = this.stores.getChannels$app_productionGoogleRelease().getChannelsForGuildInternal$app_productionGoogleRelease(j);
if (channelsForGuildInternal$app_productionBetaRelease == null || (collection = channelsForGuildInternal$app_productionBetaRelease.values()) == null) { if (channelsForGuildInternal$app_productionGoogleRelease == null || (collection = channelsForGuildInternal$app_productionGoogleRelease.values()) == null) {
collection = n.emptyList(); collection = n.emptyList();
} }
Map<Long, GuildRole> map = this.stores.getGuilds$app_productionBetaRelease().getGuildRolesInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildRole> map = this.stores.getGuilds$app_productionGoogleRelease().getGuildRolesInternal$app_productionGoogleRelease().get(Long.valueOf(j));
int size = map != null ? map.size() : 0; int size = map != null ? map.size() : 0;
long id2 = this.stores.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId(); long id2 = this.stores.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId();
Map<Long, GuildMember> map2 = this.stores.getGuilds$app_productionBetaRelease().getGuildMembersComputedInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildMember> map2 = this.stores.getGuilds$app_productionGoogleRelease().getGuildMembersComputedInternal$app_productionGoogleRelease().get(Long.valueOf(j));
int size2 = (map2 == null || (guildMember = map2.get(Long.valueOf(id2))) == null || (roles = guildMember.getRoles()) == null) ? 0 : roles.size(); int size2 = (map2 == null || (guildMember = map2.get(Long.valueOf(id2))) == null || (roles = guildMember.getRoles()) == null) ? 0 : roles.size();
Long l = this.stores.getPermissions$app_productionBetaRelease().getGuildPermissions().get(Long.valueOf(j)); Long l = this.stores.getPermissions$app_productionGoogleRelease().getGuildPermissions().get(Long.valueOf(j));
return guildPropertiesMap(guild.getId(), approximateMemberCount, collection, size, size2, l != null ? l.longValue() : 0, guild.getFeatures().contains(GuildFeature.VIP_REGIONS)); return guildPropertiesMap(guild.getId(), approximateMemberCount, collection, size, size2, l != null ? l.longValue() : 0, guild.getFeatures().contains(GuildFeature.VIP_REGIONS));
} }
private final Map<String, Object> getGuildAndChannelSnapshotAnalyticsProperties(long j) { private final Map<String, Object> getGuildAndChannelSnapshotAnalyticsProperties(long j) {
Channel channel = this.stores.getChannels$app_productionBetaRelease().getChannel(j); Channel channel = this.stores.getChannels$app_productionGoogleRelease().getChannel(j);
Map<String, Object> map = null; Map<String, Object> map = null;
if (channel != null) { if (channel != null) {
map = h0.plus(getGuildSnapshotAnalyticsProperties(channel.e()), getChannelSnapshotAnalyticsProperties$default(this, channel, false, 2, (Object) null)); map = h0.plus(getGuildSnapshotAnalyticsProperties(channel.e()), getChannelSnapshotAnalyticsProperties$default(this, channel, false, 2, (Object) null));
@ -318,7 +318,7 @@ public final class StoreAnalytics extends Store {
} }
private final Map<String, Object> getGuildSnapshotAnalyticsProperties(long j) { private final Map<String, Object> getGuildSnapshotAnalyticsProperties(long j) {
Guild guild = this.stores.getGuilds$app_productionBetaRelease().getGuilds().get(Long.valueOf(j)); Guild guild = this.stores.getGuilds$app_productionGoogleRelease().getGuilds().get(Long.valueOf(j));
Map<String, Object> guildSnapshotAnalyticsProperties = guild != null ? getGuildSnapshotAnalyticsProperties(guild) : null; Map<String, Object> guildSnapshotAnalyticsProperties = guild != null ? getGuildSnapshotAnalyticsProperties(guild) : null;
return guildSnapshotAnalyticsProperties != null ? guildSnapshotAnalyticsProperties : h0.emptyMap(); return guildSnapshotAnalyticsProperties != null ? guildSnapshotAnalyticsProperties : h0.emptyMap();
} }
@ -326,19 +326,19 @@ public final class StoreAnalytics extends Store {
private final Map<String, Object> getGuildSnapshotAnalyticsProperties(Guild guild) { private final Map<String, Object> getGuildSnapshotAnalyticsProperties(Guild guild) {
GuildMember guildMember; GuildMember guildMember;
List<Long> roles; List<Long> roles;
int approximateMemberCount = this.stores.getGuildMemberCounts$app_productionBetaRelease().getApproximateMemberCount(guild.getId()); int approximateMemberCount = this.stores.getGuildMemberCounts$app_productionGoogleRelease().getApproximateMemberCount(guild.getId());
Collection<Channel> values = this.stores.getChannels$app_productionBetaRelease().getChannelsForGuild(guild.getId()).values(); Collection<Channel> values = this.stores.getChannels$app_productionGoogleRelease().getChannelsForGuild(guild.getId()).values();
Map<Long, GuildRole> map = this.stores.getGuilds$app_productionBetaRelease().getRoles().get(Long.valueOf(guild.getId())); Map<Long, GuildRole> map = this.stores.getGuilds$app_productionGoogleRelease().getRoles().get(Long.valueOf(guild.getId()));
int size = map != null ? map.size() : 0; int size = map != null ? map.size() : 0;
long id2 = this.stores.getUsers$app_productionBetaRelease().getMe().getId(); long id2 = this.stores.getUsers$app_productionGoogleRelease().getMe().getId();
Map<Long, GuildMember> map2 = this.stores.getGuilds$app_productionBetaRelease().getMembers().get(Long.valueOf(guild.getId())); Map<Long, GuildMember> map2 = this.stores.getGuilds$app_productionGoogleRelease().getMembers().get(Long.valueOf(guild.getId()));
int size2 = (map2 == null || (guildMember = map2.get(Long.valueOf(id2))) == null || (roles = guildMember.getRoles()) == null) ? 0 : roles.size(); int size2 = (map2 == null || (guildMember = map2.get(Long.valueOf(id2))) == null || (roles = guildMember.getRoles()) == null) ? 0 : roles.size();
Long l = this.stores.getPermissions$app_productionBetaRelease().getGuildPermissions().get(Long.valueOf(guild.getId())); Long l = this.stores.getPermissions$app_productionGoogleRelease().getGuildPermissions().get(Long.valueOf(guild.getId()));
return guildPropertiesMap(guild.getId(), approximateMemberCount, values, size, size2, l != null ? l.longValue() : 0, guild.getFeatures().contains(GuildFeature.VIP_REGIONS)); return guildPropertiesMap(guild.getId(), approximateMemberCount, values, size, size2, l != null ? l.longValue() : 0, guild.getFeatures().contains(GuildFeature.VIP_REGIONS));
} }
private final Map<String, Object> getSnapshotAnalyticsProperties() { private final Map<String, Object> getSnapshotAnalyticsProperties() {
return getGuildAndChannelSnapshotAnalyticsProperties(this.stores.getChannelsSelected$app_productionBetaRelease().getId()); return getGuildAndChannelSnapshotAnalyticsProperties(this.stores.getChannelsSelected$app_productionGoogleRelease().getId());
} }
private final String getStreamFeedbackReasonFromIssue(FeedbackIssue feedbackIssue) { private final String getStreamFeedbackReasonFromIssue(FeedbackIssue feedbackIssue) {
@ -376,7 +376,7 @@ public final class StoreAnalytics extends Store {
type: STATIC call: d0.o.to(java.lang.Object, java.lang.Object):kotlin.Pair) type: STATIC call: d0.o.to(java.lang.Object, java.lang.Object):kotlin.Pair)
*/ */
private final Map<String, Object> getThreadSnapshotAnalyticsProperties(Channel channel) { private final Map<String, Object> getThreadSnapshotAnalyticsProperties(Channel channel) {
Integer threadMessageCount = this.stores.getThreadMessages$app_productionBetaRelease().getThreadMessageCount(channel.g()); Integer threadMessageCount = this.stores.getThreadMessages$app_productionGoogleRelease().getThreadMessageCount(channel.g());
boolean z2 = false; boolean z2 = false;
int intValue = threadMessageCount != null ? threadMessageCount.intValue() : 0; int intValue = threadMessageCount != null ? threadMessageCount.intValue() : 0;
Pair[] pairArr = new Pair[9]; Pair[] pairArr = new Pair[9];
@ -443,13 +443,13 @@ public final class StoreAnalytics extends Store {
private final void handleVideoInputUpdate(VideoInputDeviceDescription videoInputDeviceDescription, boolean z2) { private final void handleVideoInputUpdate(VideoInputDeviceDescription videoInputDeviceDescription, boolean z2) {
Channel channel = this.selectedVoiceChannel; Channel channel = this.selectedVoiceChannel;
if (channel != null) { if (channel != null) {
Map<Long, VoiceState> map = this.stores.getVoiceStates$app_productionBetaRelease().get().get(Long.valueOf(channel.e())); Map<Long, VoiceState> map = this.stores.getVoiceStates$app_productionGoogleRelease().get().get(Long.valueOf(channel.e()));
if (map == null) { if (map == null) {
map = h0.emptyMap(); map = h0.emptyMap();
} }
long id2 = this.stores.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId(); long id2 = this.stores.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId();
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
RtcConnection.Metadata rtcConnectionMetadata = this.stores.getRtcConnection$app_productionBetaRelease().getRtcConnectionMetadata(); RtcConnection.Metadata rtcConnectionMetadata = this.stores.getRtcConnection$app_productionGoogleRelease().getRtcConnectionMetadata();
analyticsTracker.videoInputsUpdate(id2, channel, map, videoInputDeviceDescription, z2, rtcConnectionMetadata != null ? rtcConnectionMetadata.b : null); analyticsTracker.videoInputsUpdate(id2, channel, map, videoInputDeviceDescription, z2, rtcConnectionMetadata != null ? rtcConnectionMetadata.b : null);
} }
} }
@ -586,7 +586,7 @@ public final class StoreAnalytics extends Store {
} }
public final Traits.Location getEmojiPickerUpsellLocation() { public final Traits.Location getEmojiPickerUpsellLocation() {
Channel channel = this.stores.getChannels$app_productionBetaRelease().getChannel(this.stores.getChannelsSelected$app_productionBetaRelease().getId()); Channel channel = this.stores.getChannels$app_productionGoogleRelease().getChannel(this.stores.getChannelsSelected$app_productionGoogleRelease().getId());
return new Traits.Location((channel == null || channel.e() != 0) ? "Guild Channel" : "DM Channel", "Emoji Picker Popout", null, null, null, 28, null); return new Traits.Location((channel == null || channel.e() != 0) ? "Guild Channel" : "DM Channel", "Emoji Picker Popout", null, null, null, 28, null);
} }
@ -619,7 +619,7 @@ public final class StoreAnalytics extends Store {
@StoreThread @StoreThread
public final void handleIsScreenSharingChanged(boolean z2) { public final void handleIsScreenSharingChanged(boolean z2) {
handleVideoInputUpdate(this.stores.getMediaEngine$app_productionBetaRelease().getSelectedVideoInputDeviceBlocking(), z2); handleVideoInputUpdate(this.stores.getMediaEngine$app_productionGoogleRelease().getSelectedVideoInputDeviceBlocking(), z2);
} }
@StoreThread @StoreThread
@ -636,7 +636,7 @@ public final class StoreAnalytics extends Store {
m.checkNotNullParameter(set, "speakingUsers"); m.checkNotNullParameter(set, "speakingUsers");
String str = this.inputMode; String str = this.inputMode;
if (str != null && (channel = this.selectedVoiceChannel) != null) { if (str != null && (channel = this.selectedVoiceChannel) != null) {
long id2 = this.stores.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId(); long id2 = this.stores.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId();
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
analyticsTracker.userSpeaking(id2, set, str, channel); analyticsTracker.userSpeaking(id2, set, str, channel);
analyticsTracker.userListening(id2, set, str, channel); analyticsTracker.userListening(id2, set, str, channel);
@ -645,15 +645,15 @@ public final class StoreAnalytics extends Store {
@StoreThread @StoreThread
public final void handleVideoInputDeviceSelected(VideoInputDeviceDescription videoInputDeviceDescription) { public final void handleVideoInputDeviceSelected(VideoInputDeviceDescription videoInputDeviceDescription) {
handleVideoInputUpdate(videoInputDeviceDescription, this.stores.getApplicationStreaming$app_productionBetaRelease().isScreenSharing()); handleVideoInputUpdate(videoInputDeviceDescription, this.stores.getApplicationStreaming$app_productionGoogleRelease().isScreenSharing());
} }
@Override // com.discord.stores.Store @Override // com.discord.stores.Store
public void init(Context context) { public void init(Context context) {
m.checkNotNullParameter(context, "context"); m.checkNotNullParameter(context, "context");
super.init(context); super.init(context);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(this.stores.getMediaSettings$app_productionBetaRelease().getInputMode()), StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$1(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(this.stores.getMediaSettings$app_productionGoogleRelease().getInputMode()), StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$1(this), 62, (Object) null);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(this.stores.getVoiceChannelSelected$app_productionBetaRelease().observeSelectedChannel()), StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$2(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(this.stores.getVoiceChannelSelected$app_productionGoogleRelease().observeSelectedChannel()), StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$2(this), 62, (Object) null);
Observable z2 = this.screenViewedSubject.Z(StoreAnalytics$init$3.INSTANCE).z(); Observable z2 = this.screenViewedSubject.Z(StoreAnalytics$init$3.INSTANCE).z();
m.checkNotNullExpressionValue(z2, "screenViewedSubject\n … }\n }\n .first()"); m.checkNotNullExpressionValue(z2, "screenViewedSubject\n … }\n }\n .first()");
ObservableExtensionsKt.appSubscribe$default(z2, StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$4(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(z2, StoreAnalytics.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreAnalytics$init$4(this), 62, (Object) null);
@ -783,9 +783,9 @@ public final class StoreAnalytics extends Store {
@StoreThread @StoreThread
public final void trackChannelOpened(long j, ChannelAnalyticsViewType channelAnalyticsViewType, SelectedChannelAnalyticsLocation selectedChannelAnalyticsLocation) { public final void trackChannelOpened(long j, ChannelAnalyticsViewType channelAnalyticsViewType, SelectedChannelAnalyticsLocation selectedChannelAnalyticsLocation) {
m.checkNotNullParameter(channelAnalyticsViewType, "channelView"); m.checkNotNullParameter(channelAnalyticsViewType, "channelView");
Channel findChannelByIdInternal$app_productionBetaRelease = this.stores.getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(j); Channel findChannelByIdInternal$app_productionGoogleRelease = this.stores.getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(j);
if (findChannelByIdInternal$app_productionBetaRelease != null) { if (findChannelByIdInternal$app_productionGoogleRelease != null) {
AnalyticsTracker.INSTANCE.channelOpened(j, new StoreAnalytics$trackChannelOpened$$inlined$let$lambda$1(findChannelByIdInternal$app_productionBetaRelease, this, j, channelAnalyticsViewType, selectedChannelAnalyticsLocation)); AnalyticsTracker.INSTANCE.channelOpened(j, new StoreAnalytics$trackChannelOpened$$inlined$let$lambda$1(findChannelByIdInternal$app_productionGoogleRelease, this, j, channelAnalyticsViewType, selectedChannelAnalyticsLocation));
} }
} }
@ -811,10 +811,10 @@ public final class StoreAnalytics extends Store {
@StoreThread @StoreThread
public final void trackGuildViewed(long j) { public final void trackGuildViewed(long j) {
GuildMember guildMember; GuildMember guildMember;
Guild guild = this.stores.getGuilds$app_productionBetaRelease().getGuildsInternal$app_productionBetaRelease().get(Long.valueOf(j)); Guild guild = this.stores.getGuilds$app_productionGoogleRelease().getGuildsInternal$app_productionGoogleRelease().get(Long.valueOf(j));
if (guild != null) { if (guild != null) {
long id2 = this.stores.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId(); long id2 = this.stores.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId();
Map<Long, GuildMember> map = this.stores.getGuilds$app_productionBetaRelease().getGuildMembersComputedInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildMember> map = this.stores.getGuilds$app_productionGoogleRelease().getGuildMembersComputedInternal$app_productionGoogleRelease().get(Long.valueOf(j));
AnalyticsTracker.INSTANCE.guildViewed(j, new StoreAnalytics$trackGuildViewed$1(h0.plus(getGuildAnalyticsPropertiesInternal(j), h0.mapOf(o.to("is_pending", Boolean.valueOf((map == null || (guildMember = map.get(Long.valueOf(id2))) == null) ? false : guildMember.getPending())), o.to("preview_enabled", Boolean.valueOf(guild.getFeatures().contains(GuildFeature.PREVIEW_ENABLED))))))); AnalyticsTracker.INSTANCE.guildViewed(j, new StoreAnalytics$trackGuildViewed$1(h0.plus(getGuildAnalyticsPropertiesInternal(j), h0.mapOf(o.to("is_pending", Boolean.valueOf((map == null || (guildMember = map.get(Long.valueOf(id2))) == null) ? false : guildMember.getPending())), o.to("preview_enabled", Boolean.valueOf(guild.getFeatures().contains(GuildFeature.PREVIEW_ENABLED)))))));
} }
} }
@ -891,7 +891,7 @@ public final class StoreAnalytics extends Store {
if (obj3 instanceof Long) { if (obj3 instanceof Long) {
l = obj3; l = obj3;
} }
Integer maxViewersForStream = this.stores.getApplicationStreaming$app_productionBetaRelease().getMaxViewersForStream(longValue, longValue2, l); Integer maxViewersForStream = this.stores.getApplicationStreaming$app_productionGoogleRelease().getMaxViewersForStream(longValue, longValue2, l);
if (maxViewersForStream != null) { if (maxViewersForStream != null) {
map.put("max_viewers", maxViewersForStream); map.put("max_viewers", maxViewersForStream);
} }

View file

@ -582,7 +582,7 @@ public final class StoreApplicationInteractions extends StoreV2 {
} }
} }
public final Map<String, ApplicationCommandLocalSendData> getApplicationCommandLocalSendDataSet$app_productionBetaRelease() { public final Map<String, ApplicationCommandLocalSendData> getApplicationCommandLocalSendDataSet$app_productionGoogleRelease() {
return this.applicationCommandLocalSendDataSet; return this.applicationCommandLocalSendDataSet;
} }

View file

@ -32,21 +32,21 @@ public final class StoreApplicationStreaming$createStream$1 extends o implements
StoreApplicationStreaming.ActiveApplicationStream.State state; StoreApplicationStreaming.ActiveApplicationStream.State state;
StoreApplicationStreaming.ActiveApplicationStream.State state2; StoreApplicationStreaming.ActiveApplicationStream.State state2;
ModelApplicationStream stream; ModelApplicationStream stream;
RtcConnection rtcConnection$app_productionBetaRelease = StoreApplicationStreaming.access$getRtcConnectionStore$p(this.this$0).getRtcConnection$app_productionBetaRelease(); RtcConnection rtcConnection$app_productionGoogleRelease = StoreApplicationStreaming.access$getRtcConnectionStore$p(this.this$0).getRtcConnection$app_productionGoogleRelease();
Object obj = null; Object obj = null;
boolean z2 = false; boolean z2 = false;
if (rtcConnection$app_productionBetaRelease == null || rtcConnection$app_productionBetaRelease.D != this.$channelId || (!m.areEqual(rtcConnection$app_productionBetaRelease.C, this.$guildId))) { if (rtcConnection$app_productionGoogleRelease == null || rtcConnection$app_productionGoogleRelease.D != this.$channelId || (!m.areEqual(rtcConnection$app_productionGoogleRelease.C, this.$guildId))) {
AppLog appLog = AppLog.g; AppLog appLog = AppLog.g;
StringBuilder L = a.L("\n Failed to start stream.\n rtcConnection == null: "); StringBuilder L = a.L("\n Failed to start stream.\n rtcConnection == null: ");
L.append(rtcConnection$app_productionBetaRelease == null); L.append(rtcConnection$app_productionGoogleRelease == null);
L.append("\n rtcConnection.channelId != channelId: "); L.append("\n rtcConnection.channelId != channelId: ");
if (rtcConnection$app_productionBetaRelease == null || rtcConnection$app_productionBetaRelease.D != this.$channelId) { if (rtcConnection$app_productionGoogleRelease == null || rtcConnection$app_productionGoogleRelease.D != this.$channelId) {
z2 = true; z2 = true;
} }
L.append(z2); L.append(z2);
L.append("\n rtcConnection.guildId != guildId: "); L.append("\n rtcConnection.guildId != guildId: ");
if (rtcConnection$app_productionBetaRelease != null) { if (rtcConnection$app_productionGoogleRelease != null) {
obj = rtcConnection$app_productionBetaRelease.C; obj = rtcConnection$app_productionGoogleRelease.C;
} }
L.append(!m.areEqual(obj, this.$guildId)); L.append(!m.areEqual(obj, this.$guildId));
L.append("\n "); L.append("\n ");

View file

@ -278,7 +278,7 @@ public final class StoreApplicationStreaming extends StoreV2 {
} }
private final boolean isScreenSharing(ActiveApplicationStream activeApplicationStream) { private final boolean isScreenSharing(ActiveApplicationStream activeApplicationStream) {
return activeApplicationStream != null && activeApplicationStream.getStream().getOwnerId() == this.userStore.getMeInternal$app_productionBetaRelease().getId(); return activeApplicationStream != null && activeApplicationStream.getStream().getOwnerId() == this.userStore.getMeInternal$app_productionGoogleRelease().getId();
} }
private final void stopStreamInternal(String str) { private final void stopStreamInternal(String str) {
@ -307,7 +307,7 @@ public final class StoreApplicationStreaming extends StoreV2 {
} }
@StoreThread @StoreThread
public final String getActiveApplicationStreamKeyInternal$app_productionBetaRelease() { public final String getActiveApplicationStreamKeyInternal$app_productionGoogleRelease() {
ModelApplicationStream stream; ModelApplicationStream stream;
ActiveApplicationStream activeApplicationStream = this.activeApplicationStream; ActiveApplicationStream activeApplicationStream = this.activeApplicationStream;
if (activeApplicationStream == null || (stream = activeApplicationStream.getStream()) == null) { if (activeApplicationStream == null || (stream = activeApplicationStream.getStream()) == null) {
@ -472,7 +472,7 @@ public final class StoreApplicationStreaming extends StoreV2 {
markChanged(); markChanged();
} }
ActiveApplicationStream activeApplicationStream = this.activeApplicationStream; ActiveApplicationStream activeApplicationStream = this.activeApplicationStream;
if (activeApplicationStream != null && m == this.userStore.getMeInternal$app_productionBetaRelease().getId()) { if (activeApplicationStream != null && m == this.userStore.getMeInternal$app_productionGoogleRelease().getId()) {
long channelId = activeApplicationStream.getStream().getChannelId(); long channelId = activeApplicationStream.getStream().getChannelId();
Long a2 = voiceState.a(); Long a2 = voiceState.a();
if (a2 == null || channelId != a2.longValue()) { if (a2 == null || channelId != a2.longValue()) {

View file

@ -18,7 +18,7 @@ public final class StoreAudioDevices$toggleSpeakerOutput$1 extends o implements
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
if (this.this$0.getEnabled()) { if (this.this$0.getEnabled()) {
if (this.this$0.getAudioDevicesState$app_productionBetaRelease().getSelectedOutputDevice() instanceof StoreAudioDevices.OutputDevice.Speaker) { if (this.this$0.getAudioDevicesState$app_productionGoogleRelease().getSelectedOutputDevice() instanceof StoreAudioDevices.OutputDevice.Speaker) {
StoreAudioDevices.access$autoSelectNonSpeakerOutput(this.this$0); StoreAudioDevices.access$autoSelectNonSpeakerOutput(this.this$0);
} else { } else {
StoreAudioDevices.access$updateSelectedOutputDevice(this.this$0, StoreAudioDevices.OutputDevice.Speaker.INSTANCE); StoreAudioDevices.access$updateSelectedOutputDevice(this.this$0, StoreAudioDevices.OutputDevice.Speaker.INSTANCE);

View file

@ -154,22 +154,22 @@ public final class StoreAudioDevices extends StoreV2 {
} }
@VisibleForTesting @VisibleForTesting
public static /* synthetic */ void getDEFAULT_AUDIO_DEVICES_STATE$app_productionBetaRelease$annotations() { public static /* synthetic */ void getDEFAULT_AUDIO_DEVICES_STATE$app_productionGoogleRelease$annotations() {
} }
@VisibleForTesting @VisibleForTesting
public static /* synthetic */ void getDEFAULT_OUTPUT_STATE$app_productionBetaRelease$annotations() { public static /* synthetic */ void getDEFAULT_OUTPUT_STATE$app_productionGoogleRelease$annotations() {
} }
public final AudioDevicesState getDEFAULT_AUDIO_DEVICES_STATE$app_productionBetaRelease() { public final AudioDevicesState getDEFAULT_AUDIO_DEVICES_STATE$app_productionGoogleRelease() {
return StoreAudioDevices.access$getDEFAULT_AUDIO_DEVICES_STATE$cp(); return StoreAudioDevices.access$getDEFAULT_AUDIO_DEVICES_STATE$cp();
} }
public final OutputDevice.Speaker getDEFAULT_OUTPUT_DEVICE$app_productionBetaRelease() { public final OutputDevice.Speaker getDEFAULT_OUTPUT_DEVICE$app_productionGoogleRelease() {
return StoreAudioDevices.access$getDEFAULT_OUTPUT_DEVICE$cp(); return StoreAudioDevices.access$getDEFAULT_OUTPUT_DEVICE$cp();
} }
public final AudioOutputState getDEFAULT_OUTPUT_STATE$app_productionBetaRelease() { public final AudioOutputState getDEFAULT_OUTPUT_STATE$app_productionGoogleRelease() {
return StoreAudioDevices.access$getDEFAULT_OUTPUT_STATE$cp(); return StoreAudioDevices.access$getDEFAULT_OUTPUT_STATE$cp();
} }
} }
@ -286,8 +286,8 @@ public final class StoreAudioDevices extends StoreV2 {
@StoreThread @StoreThread
private final Map<Long, VoiceState> getVoiceStatesForChannel(long j) { private final Map<Long, VoiceState> getVoiceStatesForChannel(long j) {
Channel findChannelByIdInternal$app_productionBetaRelease = this.channelsStore.findChannelByIdInternal$app_productionBetaRelease(j); Channel findChannelByIdInternal$app_productionGoogleRelease = this.channelsStore.findChannelByIdInternal$app_productionGoogleRelease(j);
Map<Long, VoiceState> map = this.voiceStatesStore.getInternal$app_productionBetaRelease().get(findChannelByIdInternal$app_productionBetaRelease != null ? Long.valueOf(findChannelByIdInternal$app_productionBetaRelease.e()) : null); Map<Long, VoiceState> map = this.voiceStatesStore.getInternal$app_productionGoogleRelease().get(findChannelByIdInternal$app_productionGoogleRelease != null ? Long.valueOf(findChannelByIdInternal$app_productionGoogleRelease.e()) : null);
if (map == null) { if (map == null) {
return h0.emptyMap(); return h0.emptyMap();
} }
@ -317,7 +317,7 @@ public final class StoreAudioDevices extends StoreV2 {
@StoreThread @StoreThread
public final boolean isMeUsingVideoInChannel(long j) { public final boolean isMeUsingVideoInChannel(long j) {
VoiceState voiceState = getVoiceStatesForChannel(j).get(Long.valueOf(this.usersStore.getMeInternal$app_productionBetaRelease().getId())); VoiceState voiceState = getVoiceStatesForChannel(j).get(Long.valueOf(this.usersStore.getMeInternal$app_productionGoogleRelease().getId()));
if (voiceState != null) { if (voiceState != null) {
return AnimatableValueParser.U0(voiceState); return AnimatableValueParser.U0(voiceState);
} }
@ -489,7 +489,7 @@ public final class StoreAudioDevices extends StoreV2 {
} }
} }
public final AudioDevicesState getAudioDevicesState$app_productionBetaRelease() { public final AudioDevicesState getAudioDevicesState$app_productionGoogleRelease() {
return this.audioDevicesState; return this.audioDevicesState;
} }
@ -545,7 +545,7 @@ public final class StoreAudioDevices extends StoreV2 {
this.dispatcher.schedule(new StoreAudioDevices$selectAudioOutput$1(this, outputDevice)); this.dispatcher.schedule(new StoreAudioDevices$selectAudioOutput$1(this, outputDevice));
} }
public final void setAudioDevicesState$app_productionBetaRelease(AudioDevicesState audioDevicesState) { public final void setAudioDevicesState$app_productionGoogleRelease(AudioDevicesState audioDevicesState) {
m.checkNotNullParameter(audioDevicesState, "<set-?>"); m.checkNotNullParameter(audioDevicesState, "<set-?>");
this.audioDevicesState = audioDevicesState; this.audioDevicesState = audioDevicesState;
} }

View file

@ -18,7 +18,7 @@ public final class StoreAudioManagerV2$toggleSpeakerOutput$1 extends o implement
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
if (this.this$0.getEnabled()) { if (this.this$0.getEnabled()) {
if (this.this$0.getState$app_productionBetaRelease().getActiveAudioDevice().ordinal() != 2) { if (this.this$0.getState$app_productionGoogleRelease().getActiveAudioDevice().ordinal() != 2) {
this.this$0.selectOutputDevice(DiscordAudioManager.DeviceTypes.SPEAKERPHONE); this.this$0.selectOutputDevice(DiscordAudioManager.DeviceTypes.SPEAKERPHONE);
} else { } else {
this.this$0.selectOutputDevice(DiscordAudioManager.DeviceTypes.DEFAULT); this.this$0.selectOutputDevice(DiscordAudioManager.DeviceTypes.DEFAULT);

View file

@ -67,21 +67,21 @@ public final class StoreAudioManagerV2 extends StoreV2 {
} }
@VisibleForTesting @VisibleForTesting
public static /* synthetic */ void getDEFAULT_STATE$app_productionBetaRelease$annotations() { public static /* synthetic */ void getDEFAULT_STATE$app_productionGoogleRelease$annotations() {
} }
public final State getDEFAULT_STATE$app_productionBetaRelease() { public final State getDEFAULT_STATE$app_productionGoogleRelease() {
return StoreAudioManagerV2.access$getDEFAULT_STATE$cp(); return StoreAudioManagerV2.access$getDEFAULT_STATE$cp();
} }
public final List<DiscordAudioManager.DeviceTypes> getVOICE_ONLY_DEVICE_PRIORITIZATION$app_productionBetaRelease() { public final List<DiscordAudioManager.DeviceTypes> getVOICE_ONLY_DEVICE_PRIORITIZATION$app_productionGoogleRelease() {
return StoreAudioManagerV2.access$getVOICE_ONLY_DEVICE_PRIORITIZATION$cp(); return StoreAudioManagerV2.access$getVOICE_ONLY_DEVICE_PRIORITIZATION$cp();
} }
public final StoreAudioDevices.OutputDevice outputDeviceFromAudioDevice$app_productionBetaRelease(DiscordAudioManager.AudioDevice audioDevice) { public final StoreAudioDevices.OutputDevice outputDeviceFromAudioDevice$app_productionGoogleRelease(DiscordAudioManager.AudioDevice audioDevice) {
m.checkNotNullParameter(audioDevice, "device"); m.checkNotNullParameter(audioDevice, "device");
int ordinal = audioDevice.a.ordinal(); int ordinal = audioDevice.a.ordinal();
return ordinal != 2 ? ordinal != 3 ? ordinal != 4 ? ordinal != 5 ? StoreAudioDevices.Companion.getDEFAULT_OUTPUT_DEVICE$app_productionBetaRelease() : new StoreAudioDevices.OutputDevice.BluetoothAudio(audioDevice.d) : StoreAudioDevices.OutputDevice.Earpiece.INSTANCE : StoreAudioDevices.OutputDevice.WiredAudio.INSTANCE : StoreAudioDevices.OutputDevice.Speaker.INSTANCE; return ordinal != 2 ? ordinal != 3 ? ordinal != 4 ? ordinal != 5 ? StoreAudioDevices.Companion.getDEFAULT_OUTPUT_DEVICE$app_productionGoogleRelease() : new StoreAudioDevices.OutputDevice.BluetoothAudio(audioDevice.d) : StoreAudioDevices.OutputDevice.Earpiece.INSTANCE : StoreAudioDevices.OutputDevice.WiredAudio.INSTANCE : StoreAudioDevices.OutputDevice.Speaker.INSTANCE;
} }
} }
@ -136,9 +136,9 @@ public final class StoreAudioManagerV2 extends StoreV2 {
public final StoreAudioDevices.AudioDevicesState asAudioDevicesState() { public final StoreAudioDevices.AudioDevicesState asAudioDevicesState() {
StoreAudioDevices.Companion companion = StoreAudioDevices.Companion; StoreAudioDevices.Companion companion = StoreAudioDevices.Companion;
AudioOutputState dEFAULT_OUTPUT_STATE$app_productionBetaRelease = companion.getDEFAULT_OUTPUT_STATE$app_productionBetaRelease(); AudioOutputState dEFAULT_OUTPUT_STATE$app_productionGoogleRelease = companion.getDEFAULT_OUTPUT_STATE$app_productionGoogleRelease();
int ordinal = this.activeAudioDevice.ordinal(); int ordinal = this.activeAudioDevice.ordinal();
StoreAudioDevices.OutputDevice dEFAULT_OUTPUT_DEVICE$app_productionBetaRelease = (ordinal == 0 || ordinal == 1) ? companion.getDEFAULT_OUTPUT_DEVICE$app_productionBetaRelease() : StoreAudioManagerV2.Companion.outputDeviceFromAudioDevice$app_productionBetaRelease(this.audioDevices.get(this.activeAudioDevice.getValue())); StoreAudioDevices.OutputDevice dEFAULT_OUTPUT_DEVICE$app_productionGoogleRelease = (ordinal == 0 || ordinal == 1) ? companion.getDEFAULT_OUTPUT_DEVICE$app_productionGoogleRelease() : StoreAudioManagerV2.Companion.outputDeviceFromAudioDevice$app_productionGoogleRelease(this.audioDevices.get(this.activeAudioDevice.getValue()));
List<DiscordAudioManager.AudioDevice> list = this.audioDevices; List<DiscordAudioManager.AudioDevice> list = this.audioDevices;
ArrayList<DiscordAudioManager.AudioDevice> arrayList = new ArrayList(); ArrayList<DiscordAudioManager.AudioDevice> arrayList = new ArrayList();
for (Object obj : list) { for (Object obj : list) {
@ -148,9 +148,9 @@ public final class StoreAudioManagerV2 extends StoreV2 {
} }
ArrayList arrayList2 = new ArrayList(o.collectionSizeOrDefault(arrayList, 10)); ArrayList arrayList2 = new ArrayList(o.collectionSizeOrDefault(arrayList, 10));
for (DiscordAudioManager.AudioDevice audioDevice : arrayList) { for (DiscordAudioManager.AudioDevice audioDevice : arrayList) {
arrayList2.add(StoreAudioManagerV2.Companion.outputDeviceFromAudioDevice$app_productionBetaRelease(audioDevice)); arrayList2.add(StoreAudioManagerV2.Companion.outputDeviceFromAudioDevice$app_productionGoogleRelease(audioDevice));
} }
return new StoreAudioDevices.AudioDevicesState(dEFAULT_OUTPUT_STATE$app_productionBetaRelease, dEFAULT_OUTPUT_DEVICE$app_productionBetaRelease, u.toSet(arrayList2)); return new StoreAudioDevices.AudioDevicesState(dEFAULT_OUTPUT_STATE$app_productionGoogleRelease, dEFAULT_OUTPUT_DEVICE$app_productionGoogleRelease, u.toSet(arrayList2));
} }
public final List<DiscordAudioManager.AudioDevice> component1() { public final List<DiscordAudioManager.AudioDevice> component1() {
@ -322,11 +322,11 @@ public final class StoreAudioManagerV2 extends StoreV2 {
return this.enabled; return this.enabled;
} }
public final DiscordAudioManager.AudioDevice getLastActiveAudioDevice$app_productionBetaRelease() { public final DiscordAudioManager.AudioDevice getLastActiveAudioDevice$app_productionGoogleRelease() {
return this.lastActiveAudioDevice; return this.lastActiveAudioDevice;
} }
public final State getState$app_productionBetaRelease() { public final State getState$app_productionGoogleRelease() {
return this.state; return this.state;
} }
@ -441,7 +441,7 @@ public final class StoreAudioManagerV2 extends StoreV2 {
} }
} }
public final void setState$app_productionBetaRelease(State state) { public final void setState$app_productionGoogleRelease(State state) {
m.checkNotNullParameter(state, "<set-?>"); m.checkNotNullParameter(state, "<set-?>");
this.state = state; this.state = state;
} }

View file

@ -264,23 +264,23 @@ public final class StoreAuthentication extends Store {
return s2; return s2;
} }
public final String getAuthToken$app_productionBetaRelease() { public final String getAuthToken$app_productionGoogleRelease() {
return this.authToken; return this.authToken;
} }
public final Observable<String> getAuthedToken$app_productionBetaRelease() { public final Observable<String> getAuthedToken$app_productionGoogleRelease() {
Observable<String> s2 = this.tokenSubject.s(); Observable<String> s2 = this.tokenSubject.s();
m.checkNotNullExpressionValue(s2, "tokenSubject.distinctUntilChanged()"); m.checkNotNullExpressionValue(s2, "tokenSubject.distinctUntilChanged()");
return s2; return s2;
} }
public final Observable<String> getFingerPrint$app_productionBetaRelease() { public final Observable<String> getFingerPrint$app_productionGoogleRelease() {
Observable<String> s2 = this.fingerprintSubject.s(); Observable<String> s2 = this.fingerprintSubject.s();
m.checkNotNullExpressionValue(s2, "fingerprintSubject.distinctUntilChanged()"); m.checkNotNullExpressionValue(s2, "fingerprintSubject.distinctUntilChanged()");
return s2; return s2;
} }
public final String getFingerprint$app_productionBetaRelease() { public final String getFingerprint$app_productionGoogleRelease() {
return this.fingerprint; return this.fingerprint;
} }
@ -290,7 +290,7 @@ public final class StoreAuthentication extends Store {
return s2; return s2;
} }
public final Observable<Boolean> getPreLogoutSignal$app_productionBetaRelease() { public final Observable<Boolean> getPreLogoutSignal$app_productionGoogleRelease() {
Observable<Boolean> y2 = this.userInitiatedAuthEventSubject.y(StoreAuthentication$getPreLogoutSignal$1.INSTANCE); Observable<Boolean> y2 = this.userInitiatedAuthEventSubject.y(StoreAuthentication$getPreLogoutSignal$1.INSTANCE);
m.checkNotNullExpressionValue(y2, "userInitiatedAuthEventSu…LoggedIn -> !isLoggedIn }"); m.checkNotNullExpressionValue(y2, "userInitiatedAuthEventSu…LoggedIn -> !isLoggedIn }");
return y2; return y2;
@ -301,7 +301,7 @@ public final class StoreAuthentication extends Store {
} }
public final Observable<StoreNavigation.AgeGate> getShouldShowAgeGate() { public final Observable<StoreNavigation.AgeGate> getShouldShowAgeGate() {
Observable<StoreNavigation.AgeGate> s2 = Observable.i(this.storeStream.getUsers$app_productionBetaRelease().observeMe(true), this.storeStream.getAuthentication$app_productionBetaRelease().getAgeGateError(), this.storeStream.getChannelsSelected$app_productionBetaRelease().observeSelectedChannel(), StoreAuthentication$getShouldShowAgeGate$1.INSTANCE).s(); Observable<StoreNavigation.AgeGate> s2 = Observable.i(this.storeStream.getUsers$app_productionGoogleRelease().observeMe(true), this.storeStream.getAuthentication$app_productionGoogleRelease().getAgeGateError(), this.storeStream.getChannelsSelected$app_productionGoogleRelease().observeSelectedChannel(), StoreAuthentication$getShouldShowAgeGate$1.INSTANCE).s();
m.checkNotNullExpressionValue(s2, "Observable.combineLatest… .distinctUntilChanged()"); m.checkNotNullExpressionValue(s2, "Observable.combineLatest… .distinctUntilChanged()");
return s2; return s2;
} }
@ -312,7 +312,7 @@ public final class StoreAuthentication extends Store {
} }
@StoreThread @StoreThread
public final void handleAuthToken$app_productionBetaRelease(String str) { public final void handleAuthToken$app_productionGoogleRelease(String str) {
this.authToken = str; this.authToken = str;
getPrefs().edit().putString("STORE_AUTHED_TOKEN", str).apply(); getPrefs().edit().putString("STORE_AUTHED_TOKEN", str).apply();
if (str == null) { if (str == null) {
@ -338,7 +338,7 @@ public final class StoreAuthentication extends Store {
} }
@StoreThread @StoreThread
public final void handlePreLogout$app_productionBetaRelease() { public final void handlePreLogout$app_productionGoogleRelease() {
resetIsConsentRequired(); resetIsConsentRequired();
} }
@ -388,8 +388,8 @@ public final class StoreAuthentication extends Store {
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout$default(A, 0, false, 3, null), (Context) null, "logout", (Function1) null, new StoreAuthentication$logout$2(this), new StoreAuthentication$logout$3(this), (Function0) null, (Function0) null, 101, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout$default(A, 0, false, 3, null), (Context) null, "logout", (Function1) null, new StoreAuthentication$logout$2(this), new StoreAuthentication$logout$3(this), (Function0) null, (Function0) null, 101, (Object) null);
} }
public final Observable<Boolean> observeIsAuthed$app_productionBetaRelease() { public final Observable<Boolean> observeIsAuthed$app_productionGoogleRelease() {
Observable<R> G = getAuthedToken$app_productionBetaRelease().G(StoreAuthentication$observeIsAuthed$1.INSTANCE); Observable<R> G = getAuthedToken$app_productionGoogleRelease().G(StoreAuthentication$observeIsAuthed$1.INSTANCE);
m.checkNotNullExpressionValue(G, "getAuthedToken()\n .… -> authedToken != null }"); m.checkNotNullExpressionValue(G, "getAuthedToken()\n .… -> authedToken != null }");
return G; return G;
} }

View file

@ -24,7 +24,7 @@ public final class StoreCalls$call$1 extends o implements Function1<Boolean, Uni
} }
public final void invoke(boolean z2) { public final void invoke(boolean z2) {
StoreCalls.access$getStream$p(this.this$0).getVoiceChannelSelected$app_productionBetaRelease().selectVoiceChannel(this.$channelId); StoreCalls.access$getStream$p(this.this$0).getVoiceChannelSelected$app_productionGoogleRelease().selectVoiceChannel(this.$channelId);
if (z2) { if (z2) {
StoreCalls.ring$default(this.this$0, this.$channelId, null, 2, null); StoreCalls.ring$default(this.this$0, this.$channelId, null, 2, null);
} }

View file

@ -54,7 +54,7 @@ public final class StoreCalls$stopRinging$1 extends o implements Function1<Model
public final void invoke(ModelCall modelCall) { public final void invoke(ModelCall modelCall) {
if (modelCall == null) { if (modelCall == null) {
StoreCalls.access$getStream$p(this.this$0).getCallsIncoming$app_productionBetaRelease().removeIncomingCall(this.$channelId); StoreCalls.access$getStream$p(this.this$0).getCallsIncoming$app_productionGoogleRelease().removeIncomingCall(this.$channelId);
} else { } else {
ObservableExtensionsKt.appSubscribe$default(RestAPI.Companion.getApi().stopRinging(modelCall.getChannelId(), modelCall.getMessageId(), this.$recipients), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, AnonymousClass1.INSTANCE, 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(RestAPI.Companion.getApi().stopRinging(modelCall.getChannelId(), modelCall.getMessageId(), this.$recipients), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, AnonymousClass1.INSTANCE, 62, (Object) null);
} }

View file

@ -49,7 +49,7 @@ public final class StoreCalls {
long j = this.selectedChannelId; long j = this.selectedChannelId;
if (j > 0 && !this.calls.containsKey(Long.valueOf(j))) { if (j > 0 && !this.calls.containsKey(Long.valueOf(j))) {
this.calls.put(Long.valueOf(this.selectedChannelId), null); this.calls.put(Long.valueOf(this.selectedChannelId), null);
this.stream.getGatewaySocket$app_productionBetaRelease().callConnect(this.selectedChannelId); this.stream.getGatewaySocket$app_productionGoogleRelease().callConnect(this.selectedChannelId);
} }
} }
} }

View file

@ -303,7 +303,7 @@ public final class StoreChannelMembers extends StoreV2 {
private final boolean allowOwnerIndicator(long j) { private final boolean allowOwnerIndicator(long j) {
Collection<GuildRole> values; Collection<GuildRole> values;
boolean z2; boolean z2;
Map<Long, GuildRole> map = this.storeGuilds.getGuildRolesInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildRole> map = this.storeGuilds.getGuildRolesInternal$app_productionGoogleRelease().get(Long.valueOf(j));
boolean z3 = false; boolean z3 = false;
if (map != null && (values = map.values()) != null && !values.isEmpty()) { if (map != null && (values = map.values()) != null && !values.isEmpty()) {
Iterator<T> it = values.iterator(); Iterator<T> it = values.iterator();
@ -410,7 +410,7 @@ public final class StoreChannelMembers extends StoreV2 {
int ordinal = group.getType().ordinal(); int ordinal = group.getType().ordinal();
if (ordinal == 0) { if (ordinal == 0) {
long parseLong = Long.parseLong(id2); long parseLong = Long.parseLong(id2);
Map<Long, GuildRole> map = this.storeGuilds.getGuildRolesInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildRole> map = this.storeGuilds.getGuildRolesInternal$app_productionGoogleRelease().get(Long.valueOf(j));
if (map == null || (guildRole = map.get(Long.valueOf(parseLong))) == null || (str = guildRole.f()) == null) { if (map == null || (guildRole = map.get(Long.valueOf(parseLong))) == null || (str = guildRole.f()) == null) {
str = ""; str = "";
} }
@ -427,11 +427,11 @@ public final class StoreChannelMembers extends StoreV2 {
@StoreThread @StoreThread
private final ChannelMemberList.Row makeMember(long j, long j2, boolean z2) { private final ChannelMemberList.Row makeMember(long j, long j2, boolean z2) {
Guild guild = this.storeGuilds.getGuildsInternal$app_productionBetaRelease().get(Long.valueOf(j)); Guild guild = this.storeGuilds.getGuildsInternal$app_productionGoogleRelease().get(Long.valueOf(j));
Map<Long, GuildMember> map = this.storeGuilds.getGuildMembersComputedInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildMember> map = this.storeGuilds.getGuildMembersComputedInternal$app_productionGoogleRelease().get(Long.valueOf(j));
Integer num = null; Integer num = null;
GuildMember guildMember = map != null ? map.get(Long.valueOf(j2)) : null; GuildMember guildMember = map != null ? map.get(Long.valueOf(j2)) : null;
User user = this.storeUser.getUsersInternal$app_productionBetaRelease().get(Long.valueOf(j2)); User user = this.storeUser.getUsersInternal$app_productionGoogleRelease().get(Long.valueOf(j2));
if (user == null || guildMember == null) { if (user == null || guildMember == null) {
return null; return null;
} }

View file

@ -17,6 +17,6 @@ public final class StoreChannels$observeInitializedForAuthedUser$1 extends o imp
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final Boolean mo1invoke() { public final Boolean mo1invoke() {
return this.this$0.getInitializedForAuthedUser$app_productionBetaRelease(); return this.this$0.getInitializedForAuthedUser$app_productionGoogleRelease();
} }
} }

View file

@ -140,20 +140,20 @@ public final class StoreChannels extends StoreV2 {
return storeChannels.observeIds(z2); return storeChannels.observeIds(z2);
} }
public static /* synthetic */ void storeThread$app_productionBetaRelease$default(StoreChannels storeChannels, Channel channel, long j, Channel channel2, int i, Object obj) { public static /* synthetic */ void storeThread$app_productionGoogleRelease$default(StoreChannels storeChannels, Channel channel, long j, Channel channel2, int i, Object obj) {
if ((i & 2) != 0) { if ((i & 2) != 0) {
j = 0; j = 0;
} }
if ((i & 4) != 0) { if ((i & 4) != 0) {
channel2 = null; channel2 = null;
} }
storeChannels.storeThread$app_productionBetaRelease(channel, j, channel2); storeChannels.storeThread$app_productionGoogleRelease(channel, j, channel2);
} }
@StoreThread @StoreThread
private final void updateInitializationState() { private final void updateInitializationState() {
boolean z2 = this.initializedForAuthedUser; boolean z2 = this.initializedForAuthedUser;
boolean z3 = this.isAuthenticated.mo1invoke().booleanValue() && ((getChannelsByIdInternal$app_productionBetaRelease().isEmpty() ^ true) || this.handledReadyPayload || this.isStoreInitTimedOut); boolean z3 = this.isAuthenticated.mo1invoke().booleanValue() && ((getChannelsByIdInternal$app_productionGoogleRelease().isEmpty() ^ true) || this.handledReadyPayload || this.isStoreInitTimedOut);
if (!z2 && z3) { if (!z2 && z3) {
this.initializedForAuthedUser = true; this.initializedForAuthedUser = true;
markChanged(InitializedUpdateSource); markChanged(InitializedUpdateSource);
@ -161,7 +161,7 @@ public final class StoreChannels extends StoreV2 {
} }
@StoreThread @StoreThread
public final Channel findChannelByIdInternal$app_productionBetaRelease(long j) { public final Channel findChannelByIdInternal$app_productionGoogleRelease(long j) {
if (this.threadsById.containsKey(Long.valueOf(j))) { if (this.threadsById.containsKey(Long.valueOf(j))) {
return this.threadsById.get(Long.valueOf(j)); return this.threadsById.get(Long.valueOf(j));
} }
@ -176,7 +176,7 @@ public final class StoreChannels extends StoreV2 {
} }
@StoreThread @StoreThread
public final List<Channel> findChannelsByCategoryInternal$app_productionBetaRelease(long j, long j2) { public final List<Channel> findChannelsByCategoryInternal$app_productionGoogleRelease(long j, long j2) {
Collection<Channel> values; Collection<Channel> values;
Map<Long, Channel> map = this.channelsByGuild.get(Long.valueOf(j)); Map<Long, Channel> map = this.channelsByGuild.get(Long.valueOf(j));
if (map == null || (values = map.values()) == null) { if (map == null || (values = map.values()) == null) {
@ -197,7 +197,7 @@ public final class StoreChannels extends StoreV2 {
} }
@StoreThread @StoreThread
public final Channel getChannelInternal$app_productionBetaRelease(long j, long j2) { public final Channel getChannelInternal$app_productionGoogleRelease(long j, long j2) {
Channel channel; Channel channel;
Map<Long, Channel> map = this.channelsByGuild.get(Long.valueOf(j)); Map<Long, Channel> map = this.channelsByGuild.get(Long.valueOf(j));
return (map == null || (channel = map.get(Long.valueOf(j2))) == null) ? this.threadsById.get(Long.valueOf(j2)) : channel; return (map == null || (channel = map.get(Long.valueOf(j2))) == null) ? this.threadsById.get(Long.valueOf(j2)) : channel;
@ -208,17 +208,17 @@ public final class StoreChannels extends StoreV2 {
} }
@StoreThread @StoreThread
public final Map<Long, String> getChannelNamesInternal$app_productionBetaRelease() { public final Map<Long, String> getChannelNamesInternal$app_productionGoogleRelease() {
return this.channelNames; return this.channelNames;
} }
@StoreThread @StoreThread
public final Map<Long, Map<Long, Channel>> getChannelsByGuildInternal$app_productionBetaRelease() { public final Map<Long, Map<Long, Channel>> getChannelsByGuildInternal$app_productionGoogleRelease() {
return this.channelsByGuild; return this.channelsByGuild;
} }
@StoreThread @StoreThread
public final Map<Long, Channel> getChannelsByIdInternal$app_productionBetaRelease() { public final Map<Long, Channel> getChannelsByIdInternal$app_productionGoogleRelease() {
Collection<Map<Long, Channel>> values = this.channelsByGuild.values(); Collection<Map<Long, Channel>> values = this.channelsByGuild.values();
ArrayList arrayList = new ArrayList(); ArrayList arrayList = new ArrayList();
Iterator<T> it = values.iterator(); Iterator<T> it = values.iterator();
@ -238,12 +238,12 @@ public final class StoreChannels extends StoreV2 {
} }
@StoreThread @StoreThread
public final Map<Long, Channel> getChannelsForGuildInternal$app_productionBetaRelease(long j) { public final Map<Long, Channel> getChannelsForGuildInternal$app_productionGoogleRelease(long j) {
return this.channelsByGuild.get(Long.valueOf(j)); return this.channelsByGuild.get(Long.valueOf(j));
} }
@StoreThread @StoreThread
public final Channel getGuildChannelInternal$app_productionBetaRelease(long j, long j2) { public final Channel getGuildChannelInternal$app_productionGoogleRelease(long j, long j2) {
Map<Long, Channel> map = this.channelsByGuild.get(Long.valueOf(j)); Map<Long, Channel> map = this.channelsByGuild.get(Long.valueOf(j));
if (map != null) { if (map != null) {
return map.get(Long.valueOf(j2)); return map.get(Long.valueOf(j2));
@ -251,17 +251,17 @@ public final class StoreChannels extends StoreV2 {
return null; return null;
} }
public final boolean getInitializedForAuthedUser$app_productionBetaRelease() { public final boolean getInitializedForAuthedUser$app_productionGoogleRelease() {
return this.initializedForAuthedUser; return this.initializedForAuthedUser;
} }
@StoreThread @StoreThread
public final Map<Long, Channel> getThreadsByIdInternal$app_productionBetaRelease() { public final Map<Long, Channel> getThreadsByIdInternal$app_productionGoogleRelease() {
return this.threadsById; return this.threadsById;
} }
@StoreThread @StoreThread
public final List<Channel> getThreadsForChannelInternal$app_productionBetaRelease(long j) { public final List<Channel> getThreadsForChannelInternal$app_productionGoogleRelease(long j) {
Collection<Channel> values = this.threadsById.values(); Collection<Channel> values = this.threadsById.values();
ArrayList arrayList = new ArrayList(); ArrayList arrayList = new ArrayList();
for (Object obj : values) { for (Object obj : values) {
@ -273,7 +273,7 @@ public final class StoreChannels extends StoreV2 {
} }
@StoreThread @StoreThread
public final List<Channel> getThreadsForGuildInternal$app_productionBetaRelease(long j) { public final List<Channel> getThreadsForGuildInternal$app_productionGoogleRelease(long j) {
Collection<Channel> values = this.threadsById.values(); Collection<Channel> values = this.threadsById.values();
ArrayList arrayList = new ArrayList(); ArrayList arrayList = new ArrayList();
for (Object obj : values) { for (Object obj : values) {
@ -291,7 +291,7 @@ public final class StoreChannels extends StoreV2 {
long e = !AnimatableValueParser.r1(channel) ? channel.e() : 0; long e = !AnimatableValueParser.r1(channel) ? channel.e() : 0;
long g = channel.g(); long g = channel.g();
if (AnimatableValueParser.y1(channel)) { if (AnimatableValueParser.y1(channel)) {
storeThread$app_productionBetaRelease$default(this, channel, e, null, 4, null); storeThread$app_productionGoogleRelease$default(this, channel, e, null, 4, null);
} else { } else {
Map<Long, Map<Long, Channel>> map = this.channelsByGuild; Map<Long, Map<Long, Channel>> map = this.channelsByGuild;
Long valueOf = Long.valueOf(e); Long valueOf = Long.valueOf(e);
@ -311,8 +311,8 @@ public final class StoreChannels extends StoreV2 {
} }
boolean n = channel.n(); boolean n = channel.n();
if (channel2 == null || n != channel2.n()) { if (channel2 == null || n != channel2.n()) {
for (Channel channel3 : getThreadsForChannelInternal$app_productionBetaRelease(channel.g())) { for (Channel channel3 : getThreadsForChannelInternal$app_productionGoogleRelease(channel.g())) {
storeThread$app_productionBetaRelease(channel3, e, channel); storeThread$app_productionGoogleRelease(channel3, e, channel);
} }
} }
this.channelNames.put(Long.valueOf(g), AnimatableValueParser.y0(channel)); this.channelNames.put(Long.valueOf(g), AnimatableValueParser.y0(channel));
@ -400,14 +400,14 @@ public final class StoreChannels extends StoreV2 {
if (K != null) { if (K != null) {
for (Channel channel4 : K) { for (Channel channel4 : K) {
if (AnimatableValueParser.y1(channel4)) { if (AnimatableValueParser.y1(channel4)) {
storeThread$app_productionBetaRelease$default(this, channel4, guild.o(), null, 4, null); storeThread$app_productionGoogleRelease$default(this, channel4, guild.o(), null, 4, null);
} }
} }
} }
} }
for (Channel channel5 : this.preloadedThreads.values()) { for (Channel channel5 : this.preloadedThreads.values()) {
if (!this.threadsById.containsKey(Long.valueOf(channel5.g()))) { if (!this.threadsById.containsKey(Long.valueOf(channel5.g()))) {
storeThread$app_productionBetaRelease$default(this, channel5, channel5.e(), null, 4, null); storeThread$app_productionGoogleRelease$default(this, channel5, channel5.e(), null, 4, null);
} }
} }
this.preloadedThreads.clear(); this.preloadedThreads.clear();
@ -513,7 +513,7 @@ public final class StoreChannels extends StoreV2 {
if (K != null) { if (K != null) {
for (Channel channel2 : K) { for (Channel channel2 : K) {
if (AnimatableValueParser.y1(channel2)) { if (AnimatableValueParser.y1(channel2)) {
storeThread$app_productionBetaRelease$default(this, channel2, guild.o(), null, 4, null); storeThread$app_productionGoogleRelease$default(this, channel2, guild.o(), null, 4, null);
} }
} }
} }
@ -547,7 +547,7 @@ public final class StoreChannels extends StoreV2 {
if (!this.threadsById.containsKey(Long.valueOf(thread.g()))) { if (!this.threadsById.containsKey(Long.valueOf(thread.g()))) {
m.checkNotNullExpressionValue(thread, "thread"); m.checkNotNullExpressionValue(thread, "thread");
if (AnimatableValueParser.y1(thread)) { if (AnimatableValueParser.y1(thread)) {
storeThread$app_productionBetaRelease$default(this, thread, 0, null, 6, null); storeThread$app_productionGoogleRelease$default(this, thread, 0, null, 6, null);
markChanged(); markChanged();
} }
} }
@ -568,7 +568,7 @@ public final class StoreChannels extends StoreV2 {
if (threads != null) { if (threads != null) {
for (Channel channel : threads) { for (Channel channel : threads) {
if (!this.threadsById.containsKey(Long.valueOf(channel.g())) && AnimatableValueParser.y1(channel)) { if (!this.threadsById.containsKey(Long.valueOf(channel.g())) && AnimatableValueParser.y1(channel)) {
storeThread$app_productionBetaRelease$default(this, channel, 0, null, 6, null); storeThread$app_productionGoogleRelease$default(this, channel, 0, null, 6, null);
markChanged(); markChanged();
} }
} }
@ -580,7 +580,7 @@ public final class StoreChannels extends StoreV2 {
if (thread != null && !this.threadsById.containsKey(Long.valueOf(thread.g()))) { if (thread != null && !this.threadsById.containsKey(Long.valueOf(thread.g()))) {
m.checkNotNullExpressionValue(thread, "thread"); m.checkNotNullExpressionValue(thread, "thread");
if (AnimatableValueParser.y1(thread)) { if (AnimatableValueParser.y1(thread)) {
storeThread$app_productionBetaRelease$default(this, thread, 0, null, 6, null); storeThread$app_productionGoogleRelease$default(this, thread, 0, null, 6, null);
markChanged(); markChanged();
} }
} }
@ -608,7 +608,7 @@ public final class StoreChannels extends StoreV2 {
if (!modelThreadListSync.getThreads().isEmpty()) { if (!modelThreadListSync.getThreads().isEmpty()) {
for (Channel channel : modelThreadListSync.getThreads()) { for (Channel channel : modelThreadListSync.getThreads()) {
if (AnimatableValueParser.y1(channel)) { if (AnimatableValueParser.y1(channel)) {
storeThread$app_productionBetaRelease$default(this, channel, modelThreadListSync.getGuildId(), null, 4, null); storeThread$app_productionGoogleRelease$default(this, channel, modelThreadListSync.getGuildId(), null, 4, null);
} }
} }
markChanged(); markChanged();
@ -737,7 +737,7 @@ public final class StoreChannels extends StoreV2 {
this.dispatcher.schedule(new StoreChannels$onGroupCreated$1(this, channel)); this.dispatcher.schedule(new StoreChannels$onGroupCreated$1(this, channel));
} }
public final void setInitializedForAuthedUser$app_productionBetaRelease(boolean z2) { public final void setInitializedForAuthedUser$app_productionGoogleRelease(boolean z2) {
this.initializedForAuthedUser = z2; this.initializedForAuthedUser = z2;
} }
@ -794,7 +794,7 @@ public final class StoreChannels extends StoreV2 {
/* JADX WARNING: Removed duplicated region for block: B:12:0x003e */ /* JADX WARNING: Removed duplicated region for block: B:12:0x003e */
/* JADX WARNING: Removed duplicated region for block: B:13:0x0043 */ /* JADX WARNING: Removed duplicated region for block: B:13:0x0043 */
@StoreThread @StoreThread
public final void storeThread$app_productionBetaRelease(Channel channel, long j, Channel channel2) { public final void storeThread$app_productionGoogleRelease(Channel channel, long j, Channel channel2) {
Boolean bool; Boolean bool;
boolean n; boolean n;
m.checkNotNullParameter(channel, "thread"); m.checkNotNullParameter(channel, "thread");
@ -802,9 +802,9 @@ public final class StoreChannels extends StoreV2 {
if (channel2 != null) { if (channel2 != null) {
n = channel2.n(); n = channel2.n();
} else { } else {
Channel channelInternal$app_productionBetaRelease = getChannelInternal$app_productionBetaRelease(channel.e(), channel.q()); Channel channelInternal$app_productionGoogleRelease = getChannelInternal$app_productionGoogleRelease(channel.e(), channel.q());
if (channelInternal$app_productionBetaRelease != null) { if (channelInternal$app_productionGoogleRelease != null) {
n = channelInternal$app_productionBetaRelease.n(); n = channelInternal$app_productionGoogleRelease.n();
} else { } else {
bool = null; bool = null;
this.threadsById.put(Long.valueOf(channel.g()), Channel.a(channel, null, 0, e, null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, bool == null ? bool.booleanValue() : channel.n(), 0, null, 0, null, null, null, null, null, null, null, 268304379)); this.threadsById.put(Long.valueOf(channel.g()), Channel.a(channel, null, 0, e, null, 0, 0, 0, null, null, 0, null, 0, 0, null, 0, 0, null, bool == null ? bool.booleanValue() : channel.n(), 0, null, 0, null, null, null, null, null, null, null, 268304379));

View file

@ -648,7 +648,7 @@ public final class StoreChannelsSelected extends StoreV2 {
} }
if (z2) { if (z2) {
ResolvedSelectedChannel.Channel channel2 = (ResolvedSelectedChannel.Channel) resolvedSelectedChannel; ResolvedSelectedChannel.Channel channel2 = (ResolvedSelectedChannel.Channel) resolvedSelectedChannel;
this.stream.getAnalytics$app_productionBetaRelease().trackChannelOpened(resolvedSelectedChannel.getId(), channel2.getAnalyticsViewType(), channel2.getAnalyticsLocation()); this.stream.getAnalytics$app_productionGoogleRelease().trackChannelOpened(resolvedSelectedChannel.getId(), channel2.getAnalyticsViewType(), channel2.getAnalyticsLocation());
} }
updateInitializationState(); updateInitializationState();
markChanged(); markChanged();
@ -671,9 +671,9 @@ public final class StoreChannelsSelected extends StoreV2 {
@StoreThread @StoreThread
private final void updateInitializationState() { private final void updateInitializationState() {
boolean z2 = this.stream.getAuthentication$app_productionBetaRelease().getAuthToken$app_productionBetaRelease() != null; boolean z2 = this.stream.getAuthentication$app_productionGoogleRelease().getAuthToken$app_productionGoogleRelease() != null;
boolean z3 = this.initializedForAuthedUser; boolean z3 = this.initializedForAuthedUser;
boolean z4 = z2 && this.storeChannels.getInitializedForAuthedUser$app_productionBetaRelease() && ((this.userChannelSelections.isEmpty() ^ true) || this.handledReadyPayload || this.isStoreInitTimedOut) && (m.areEqual(this.selectedChannel, ResolvedSelectedChannel.Uninitialized.INSTANCE) ^ true); boolean z4 = z2 && this.storeChannels.getInitializedForAuthedUser$app_productionGoogleRelease() && ((this.userChannelSelections.isEmpty() ^ true) || this.handledReadyPayload || this.isStoreInitTimedOut) && (m.areEqual(this.selectedChannel, ResolvedSelectedChannel.Uninitialized.INSTANCE) ^ true);
if (!z3 && z4) { if (!z3 && z4) {
this.initializedForAuthedUser = true; this.initializedForAuthedUser = true;
markChanged(InitializedUpdateSource); markChanged(InitializedUpdateSource);
@ -686,10 +686,10 @@ public final class StoreChannelsSelected extends StoreV2 {
if (subscription != null) { if (subscription != null) {
subscription.unsubscribe(); subscription.unsubscribe();
} }
Map<Long, Channel> channelsByIdInternal$app_productionBetaRelease = this.storeChannels.getChannelsByIdInternal$app_productionBetaRelease(); Map<Long, Channel> channelsByIdInternal$app_productionGoogleRelease = this.storeChannels.getChannelsByIdInternal$app_productionGoogleRelease();
boolean initializedForAuthedUser$app_productionBetaRelease = this.storeChannels.getInitializedForAuthedUser$app_productionBetaRelease(); boolean initializedForAuthedUser$app_productionGoogleRelease = this.storeChannels.getInitializedForAuthedUser$app_productionGoogleRelease();
long selectedGuildIdInternal$app_productionBetaRelease = this.storeGuildSelected.getSelectedGuildIdInternal$app_productionBetaRelease(); long selectedGuildIdInternal$app_productionGoogleRelease = this.storeGuildSelected.getSelectedGuildIdInternal$app_productionGoogleRelease();
Observable s2 = ObservableExtensionsKt.computationLatest(ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this.storeGuildSelected, this.storeChannels, this.storePermissions}, false, null, null, new StoreChannelsSelected$validateSelectedChannel$1(this, this.userChannelSelections.get(Long.valueOf(selectedGuildIdInternal$app_productionBetaRelease)), channelsByIdInternal$app_productionBetaRelease, selectedGuildIdInternal$app_productionBetaRelease, this.storePermissions.getPermissionsByChannelInternal$app_productionBetaRelease(selectedGuildIdInternal$app_productionBetaRelease), initializedForAuthedUser$app_productionBetaRelease), 14, null)).s(); Observable s2 = ObservableExtensionsKt.computationLatest(ObservationDeck.connectRx$default(this.observationDeck, new ObservationDeck.UpdateSource[]{this.storeGuildSelected, this.storeChannels, this.storePermissions}, false, null, null, new StoreChannelsSelected$validateSelectedChannel$1(this, this.userChannelSelections.get(Long.valueOf(selectedGuildIdInternal$app_productionGoogleRelease)), channelsByIdInternal$app_productionGoogleRelease, selectedGuildIdInternal$app_productionGoogleRelease, this.storePermissions.getPermissionsByChannelInternal$app_productionGoogleRelease(selectedGuildIdInternal$app_productionGoogleRelease), initializedForAuthedUser$app_productionGoogleRelease), 14, null)).s();
m.checkNotNullExpressionValue(s2, "observationDeck\n … .distinctUntilChanged()"); m.checkNotNullExpressionValue(s2, "observationDeck\n … .distinctUntilChanged()");
ObservableExtensionsKt.appSubscribe$default(s2, StoreChannelsSelected.class, (Context) null, new StoreChannelsSelected$validateSelectedChannel$2(this), (Function1) null, (Function0) null, (Function0) null, new StoreChannelsSelected$validateSelectedChannel$3(this), 58, (Object) null); ObservableExtensionsKt.appSubscribe$default(s2, StoreChannelsSelected.class, (Context) null, new StoreChannelsSelected$validateSelectedChannel$2(this), (Function1) null, (Function0) null, (Function0) null, new StoreChannelsSelected$validateSelectedChannel$3(this), 58, (Object) null);
} }
@ -773,7 +773,7 @@ public final class StoreChannelsSelected extends StoreV2 {
@StoreThread @StoreThread
public final void handleGuildAdd(Guild guild) { public final void handleGuildAdd(Guild guild) {
m.checkNotNullParameter(guild, "guild"); m.checkNotNullParameter(guild, "guild");
if (this.storeGuildSelected.getSelectedGuildIdInternal$app_productionBetaRelease() == guild.o()) { if (this.storeGuildSelected.getSelectedGuildIdInternal$app_productionGoogleRelease() == guild.o()) {
validateSelectedChannel(); validateSelectedChannel();
} }
} }

View file

@ -15,7 +15,7 @@ public final class StoreClientVersion extends Store {
private int clientMinVersion; private int clientMinVersion;
private final String clientMinVersionKey = "CLIENT_OUTDATED_KEY"; private final String clientMinVersionKey = "CLIENT_OUTDATED_KEY";
private final SerializedSubject<Boolean, Boolean> clientOutdatedSubject = new SerializedSubject<>(BehaviorSubject.m0(Boolean.FALSE)); private final SerializedSubject<Boolean, Boolean> clientOutdatedSubject = new SerializedSubject<>(BehaviorSubject.m0(Boolean.FALSE));
private final int clientVersion = 80108; private final int clientVersion = 80011;
public static final /* synthetic */ void access$setClientMinVersion(StoreClientVersion storeClientVersion, int i) { public static final /* synthetic */ void access$setClientMinVersion(StoreClientVersion storeClientVersion, int i) {
storeClientVersion.setClientMinVersion(i); storeClientVersion.setClientMinVersion(i);

View file

@ -281,7 +281,7 @@ public final class StoreConnectivity extends StoreV2 {
public final void init(NetworkMonitor networkMonitor) { public final void init(NetworkMonitor networkMonitor) {
m.checkNotNullParameter(networkMonitor, "networkMonitor"); m.checkNotNullParameter(networkMonitor, "networkMonitor");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(networkMonitor.observeState()), StoreConnectivity.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreConnectivity$init$1(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(networkMonitor.observeState()), StoreConnectivity.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreConnectivity$init$1(this), 62, (Object) null);
ObservableExtensionsKt.appSubscribe$default(this.stream.getMessagesLoader$app_productionBetaRelease().observeChannelMessagesLoading(), StoreConnectivity.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreConnectivity$init$2(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(this.stream.getMessagesLoader$app_productionGoogleRelease().observeChannelMessagesLoading(), StoreConnectivity.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreConnectivity$init$2(this), 62, (Object) null);
} }
public final Observable<DelayedState> observeState() { public final Observable<DelayedState> observeState() {

View file

@ -19,16 +19,16 @@ public final class StoreDynamicLink$handleDataReceived$1 extends o implements Fu
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
StoreAuthentication authentication$app_productionBetaRelease = StoreDynamicLink.access$getStream$p(this.this$0).getAuthentication$app_productionBetaRelease(); StoreAuthentication authentication$app_productionGoogleRelease = StoreDynamicLink.access$getStream$p(this.this$0).getAuthentication$app_productionGoogleRelease();
StoreDynamicLink.DynamicLinkData dynamicLinkData = this.$data; StoreDynamicLink.DynamicLinkData dynamicLinkData = this.$data;
String str = null; String str = null;
authentication$app_productionBetaRelease.setFingerprint(dynamicLinkData != null ? dynamicLinkData.getFingerprint() : null, false); authentication$app_productionGoogleRelease.setFingerprint(dynamicLinkData != null ? dynamicLinkData.getFingerprint() : null, false);
StoreDynamicLink.DynamicLinkData dynamicLinkData2 = this.$data; StoreDynamicLink.DynamicLinkData dynamicLinkData2 = this.$data;
if (dynamicLinkData2 != null) { if (dynamicLinkData2 != null) {
str = dynamicLinkData2.getAuthToken(); str = dynamicLinkData2.getAuthToken();
} }
if (str != null) { if (str != null) {
StoreDynamicLink.access$getStream$p(this.this$0).getAuthentication$app_productionBetaRelease().setAuthed(this.$data.getAuthToken()); StoreDynamicLink.access$getStream$p(this.this$0).getAuthentication$app_productionGoogleRelease().setAuthed(this.$data.getAuthToken());
} }
} }
} }

View file

@ -137,7 +137,7 @@ public final class StoreEmojiCustom extends StoreV2 {
GuildMember guildMember; GuildMember guildMember;
m.checkNotNullParameter(guildEmojisUpdate, "emojiUpdate"); m.checkNotNullParameter(guildEmojisUpdate, "emojiUpdate");
long c2 = guildEmojisUpdate.c(); long c2 = guildEmojisUpdate.c();
Map<Long, GuildMember> map = this.stream.getGuilds$app_productionBetaRelease().getGuildMembersComputedInternal$app_productionBetaRelease().get(Long.valueOf(c2)); Map<Long, GuildMember> map = this.stream.getGuilds$app_productionGoogleRelease().getGuildMembersComputedInternal$app_productionGoogleRelease().get(Long.valueOf(c2));
List<GuildEmoji> a = guildEmojisUpdate.a(); List<GuildEmoji> a = guildEmojisUpdate.a();
ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(a, 10)); ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(a, 10));
for (GuildEmoji guildEmoji : a) { for (GuildEmoji guildEmoji : a) {

View file

@ -381,9 +381,9 @@ public final class StoreExperiments extends StoreV2 {
if (num != null) { if (num != null) {
return new Experiment(guildExperimentDto != null ? guildExperimentDto.getRevision() : 0, num.intValue(), 0, true, StoreExperiments$getGuildExperiment$1.INSTANCE); return new Experiment(guildExperimentDto != null ? guildExperimentDto.getRevision() : 0, num.intValue(), 0, true, StoreExperiments$getGuildExperiment$1.INSTANCE);
} }
Experiment memoizedGuildExperiment$app_productionBetaRelease = getMemoizedGuildExperiment$app_productionBetaRelease(j + ':' + str, j); Experiment memoizedGuildExperiment$app_productionGoogleRelease = getMemoizedGuildExperiment$app_productionGoogleRelease(j + ':' + str, j);
if (memoizedGuildExperiment$app_productionBetaRelease != null) { if (memoizedGuildExperiment$app_productionGoogleRelease != null) {
return memoizedGuildExperiment$app_productionBetaRelease; return memoizedGuildExperiment$app_productionGoogleRelease;
} }
if (guildExperimentDto == null) { if (guildExperimentDto == null) {
return null; return null;
@ -398,7 +398,7 @@ public final class StoreExperiments extends StoreV2 {
return experiment; return experiment;
} }
public final synchronized Experiment getMemoizedGuildExperiment$app_productionBetaRelease(String str, long j) { public final synchronized Experiment getMemoizedGuildExperiment$app_productionGoogleRelease(String str, long j) {
m.checkNotNullParameter(str, "experimentName"); m.checkNotNullParameter(str, "experimentName");
return this.memoizedGuildExperiments.get(str + ':' + j); return this.memoizedGuildExperiments.get(str + ':' + j);
} }

View file

@ -32,9 +32,9 @@ public final class StoreGatewayConnection$streamCreate$1 extends o implements Fu
public final void invoke(GatewaySocket gatewaySocket) { public final void invoke(GatewaySocket gatewaySocket) {
m.checkNotNullParameter(gatewaySocket, "gatewaySocket"); m.checkNotNullParameter(gatewaySocket, "gatewaySocket");
String activeApplicationStreamKeyInternal$app_productionBetaRelease = StoreGatewayConnection.access$getStream$p(this.this$0).getApplicationStreaming$app_productionBetaRelease().getActiveApplicationStreamKeyInternal$app_productionBetaRelease(); String activeApplicationStreamKeyInternal$app_productionGoogleRelease = StoreGatewayConnection.access$getStream$p(this.this$0).getApplicationStreaming$app_productionGoogleRelease().getActiveApplicationStreamKeyInternal$app_productionGoogleRelease();
if (activeApplicationStreamKeyInternal$app_productionBetaRelease != null && (!m.areEqual(activeApplicationStreamKeyInternal$app_productionBetaRelease, this.$streamKey))) { if (activeApplicationStreamKeyInternal$app_productionGoogleRelease != null && (!m.areEqual(activeApplicationStreamKeyInternal$app_productionGoogleRelease, this.$streamKey))) {
this.this$0.streamDelete(activeApplicationStreamKeyInternal$app_productionBetaRelease); this.this$0.streamDelete(activeApplicationStreamKeyInternal$app_productionGoogleRelease);
} }
ModelApplicationStream modelApplicationStream = this.$newStream; ModelApplicationStream modelApplicationStream = this.$newStream;
gatewaySocket.streamCreate(this.$newStream.getType(), this.$newStream.getChannelId(), modelApplicationStream instanceof ModelApplicationStream.GuildStream ? Long.valueOf(((ModelApplicationStream.GuildStream) modelApplicationStream).getGuildId()) : null, this.$preferredRegion); gatewaySocket.streamCreate(this.$newStream.getType(), this.$newStream.getChannelId(), modelApplicationStream instanceof ModelApplicationStream.GuildStream ? Long.valueOf(((ModelApplicationStream.GuildStream) modelApplicationStream).getGuildId()) : null, this.$preferredRegion);

View file

@ -27,9 +27,9 @@ public final class StoreGatewayConnection$streamWatch$1 extends o implements Fun
public final void invoke(GatewaySocket gatewaySocket) { public final void invoke(GatewaySocket gatewaySocket) {
m.checkNotNullParameter(gatewaySocket, "it"); m.checkNotNullParameter(gatewaySocket, "it");
String activeApplicationStreamKeyInternal$app_productionBetaRelease = StoreGatewayConnection.access$getStream$p(this.this$0).getApplicationStreaming$app_productionBetaRelease().getActiveApplicationStreamKeyInternal$app_productionBetaRelease(); String activeApplicationStreamKeyInternal$app_productionGoogleRelease = StoreGatewayConnection.access$getStream$p(this.this$0).getApplicationStreaming$app_productionGoogleRelease().getActiveApplicationStreamKeyInternal$app_productionGoogleRelease();
if (activeApplicationStreamKeyInternal$app_productionBetaRelease != null && (!m.areEqual(activeApplicationStreamKeyInternal$app_productionBetaRelease, this.$streamKey))) { if (activeApplicationStreamKeyInternal$app_productionGoogleRelease != null && (!m.areEqual(activeApplicationStreamKeyInternal$app_productionGoogleRelease, this.$streamKey))) {
this.this$0.streamDelete(activeApplicationStreamKeyInternal$app_productionBetaRelease); this.this$0.streamDelete(activeApplicationStreamKeyInternal$app_productionGoogleRelease);
} }
gatewaySocket.streamWatch(this.$streamKey); gatewaySocket.streamWatch(this.$streamKey);
} }

View file

@ -196,12 +196,12 @@ public final class StoreGatewayConnection implements GatewayEventHandler {
m.checkNotNullParameter(scheduler, "scheduler"); m.checkNotNullParameter(scheduler, "scheduler");
m.checkNotNullParameter(function1, "callback"); m.checkNotNullParameter(function1, "callback");
Observable<Boolean> a = d.d.a(); Observable<Boolean> a = d.d.a();
Observable<String> authedToken$app_productionBetaRelease = storeStream.getAuthentication$app_productionBetaRelease().getAuthedToken$app_productionBetaRelease(); Observable<String> authedToken$app_productionGoogleRelease = storeStream.getAuthentication$app_productionGoogleRelease().getAuthedToken$app_productionGoogleRelease();
Observable<Long> observeSelectedVoiceChannelId = storeStream.getVoiceChannelSelected$app_productionBetaRelease().observeSelectedVoiceChannelId(); Observable<Long> observeSelectedVoiceChannelId = storeStream.getVoiceChannelSelected$app_productionGoogleRelease().observeSelectedVoiceChannelId();
n nVar = n.f45c; n nVar = n.f45c;
Observable s2 = n.b.G(c.a.d.m.i).s(); Observable s2 = n.b.G(c.a.d.m.i).s();
m.checkNotNullExpressionValue(s2, "numGatewayConnectionCons… .distinctUntilChanged()"); m.checkNotNullExpressionValue(s2, "numGatewayConnectionCons… .distinctUntilChanged()");
Observable g = Observable.g(a, authedToken$app_productionBetaRelease, observeSelectedVoiceChannelId, s2, storeStream.getClientDataState$app_productionBetaRelease().observeClientState(), new StoreGatewayConnection$sam$rx_functions_Func5$0(new StoreGatewayConnection$ClientState$Companion$initialize$1(this))); Observable g = Observable.g(a, authedToken$app_productionGoogleRelease, observeSelectedVoiceChannelId, s2, storeStream.getClientDataState$app_productionGoogleRelease().observeClientState(), new StoreGatewayConnection$sam$rx_functions_Func5$0(new StoreGatewayConnection$ClientState$Companion$initialize$1(this)));
m.checkNotNullExpressionValue(g, "Observable\n .… ::create\n )"); m.checkNotNullExpressionValue(g, "Observable\n .… ::create\n )");
Observable J = ObservableExtensionsKt.computationLatest(g).J(scheduler); Observable J = ObservableExtensionsKt.computationLatest(g).J(scheduler);
m.checkNotNullExpressionValue(J, "Observable\n .… .observeOn(scheduler)"); m.checkNotNullExpressionValue(J, "Observable\n .… .observeOn(scheduler)");
@ -799,7 +799,7 @@ public final class StoreGatewayConnection implements GatewayEventHandler {
@Override // com.discord.gateway.GatewayEventHandler @Override // com.discord.gateway.GatewayEventHandler
public void handleDisconnect(boolean z2) { public void handleDisconnect(boolean z2) {
if (z2) { if (z2) {
this.stream.getAuthentication$app_productionBetaRelease().logout(); this.stream.getAuthentication$app_productionGoogleRelease().logout();
} }
} }

View file

@ -43,7 +43,7 @@ public final class StoreGuildMemberRequester extends Store {
@StoreThread @StoreThread
private final boolean guildMemberExists(long j, long j2) { private final boolean guildMemberExists(long j, long j2) {
Map<Long, GuildMember> map = this.collector.getGuilds$app_productionBetaRelease().getGuildMembersComputedInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildMember> map = this.collector.getGuilds$app_productionGoogleRelease().getGuildMembersComputedInternal$app_productionGoogleRelease().get(Long.valueOf(j));
return (map != null ? map.get(Long.valueOf(j2)) : null) != null; return (map != null ? map.get(Long.valueOf(j2)) : null) != null;
} }
@ -64,7 +64,7 @@ public final class StoreGuildMemberRequester extends Store {
@StoreThread @StoreThread
private final void sendRequests(long j, List<Long> list) { private final void sendRequests(long j, List<Long> list) {
StoreGatewayConnection.requestGuildMembers$default(this.collector.getGatewaySocket$app_productionBetaRelease(), j, null, list, null, 2, null); StoreGatewayConnection.requestGuildMembers$default(this.collector.getGatewaySocket$app_productionGoogleRelease(), j, null, list, null, 2, null);
} }
@StoreThread @StoreThread
@ -110,9 +110,9 @@ public final class StoreGuildMemberRequester extends Store {
public final void handleLoadMessages(long j, Collection<? extends ModelMessage> collection) { public final void handleLoadMessages(long j, Collection<? extends ModelMessage> collection) {
m.checkNotNullParameter(collection, "messages"); m.checkNotNullParameter(collection, "messages");
if (this.isConnected) { if (this.isConnected) {
Channel findChannelByIdInternal$app_productionBetaRelease = this.collector.getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(j); Channel findChannelByIdInternal$app_productionGoogleRelease = this.collector.getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(j);
if (findChannelByIdInternal$app_productionBetaRelease != null) { if (findChannelByIdInternal$app_productionGoogleRelease != null) {
Long valueOf = Long.valueOf(findChannelByIdInternal$app_productionBetaRelease.e()); Long valueOf = Long.valueOf(findChannelByIdInternal$app_productionGoogleRelease.e());
if (!(valueOf.longValue() > 0)) { if (!(valueOf.longValue() > 0)) {
valueOf = null; valueOf = null;
} }

View file

@ -86,7 +86,7 @@ public final class StoreGuildSelected extends StoreV2 {
} }
@StoreThread @StoreThread
public final long getSelectedGuildIdInternal$app_productionBetaRelease() { public final long getSelectedGuildIdInternal$app_productionGoogleRelease() {
Long l = (Long) u.lastOrNull(this.selectedGuildIds); Long l = (Long) u.lastOrNull(this.selectedGuildIds);
if (l != null) { if (l != null) {
return l.longValue(); return l.longValue();
@ -160,7 +160,7 @@ public final class StoreGuildSelected extends StoreV2 {
this.selectedGuildIds.add(0L); this.selectedGuildIds.add(0L);
} }
this.analyticsStore.trackGuildViewed(((Number) u.last(this.selectedGuildIds)).longValue()); this.analyticsStore.trackGuildViewed(((Number) u.last(this.selectedGuildIds)).longValue());
Set<Long> lurkingGuildIdsSync = this.stream.getLurking$app_productionBetaRelease().getLurkingGuildIdsSync(); Set<Long> lurkingGuildIdsSync = this.stream.getLurking$app_productionGoogleRelease().getLurkingGuildIdsSync();
LeastRecentlyAddedSet<Long> leastRecentlyAddedSet = new LeastRecentlyAddedSet<>(0, null, 3, null); LeastRecentlyAddedSet<Long> leastRecentlyAddedSet = new LeastRecentlyAddedSet<>(0, null, 3, null);
LeastRecentlyAddedSet<Long> leastRecentlyAddedSet2 = this.selectedGuildIds; LeastRecentlyAddedSet<Long> leastRecentlyAddedSet2 = this.selectedGuildIds;
ArrayList arrayList = new ArrayList(); ArrayList arrayList = new ArrayList();

View file

@ -25,6 +25,6 @@ public final class StoreGuildSubscriptions$subscriptionsManager$1 extends o impl
public final void invoke(long j, GuildSubscriptions guildSubscriptions) { public final void invoke(long j, GuildSubscriptions guildSubscriptions) {
m.checkNotNullParameter(guildSubscriptions, "subscriptions"); m.checkNotNullParameter(guildSubscriptions, "subscriptions");
StoreGuildSubscriptions.access$getStoreStream$p(this.this$0).getGatewaySocket$app_productionBetaRelease().updateGuildSubscriptions(j, guildSubscriptions); StoreGuildSubscriptions.access$getStoreStream$p(this.this$0).getGatewaySocket$app_productionGoogleRelease().updateGuildSubscriptions(j, guildSubscriptions);
} }
} }

View file

@ -73,7 +73,7 @@ public final class StoreGuildSubscriptions extends StoreV2 {
@StoreThread @StoreThread
public final void handleConnectionReady(boolean z2) { public final void handleConnectionReady(boolean z2) {
if (z2) { if (z2) {
long selectedGuildId = this.storeStream.getGuildSelected$app_productionBetaRelease().getSelectedGuildId(); long selectedGuildId = this.storeStream.getGuildSelected$app_productionGoogleRelease().getSelectedGuildId();
if (selectedGuildId > 0) { if (selectedGuildId > 0) {
handleGuildSelect(selectedGuildId); handleGuildSelect(selectedGuildId);
} }
@ -81,7 +81,7 @@ public final class StoreGuildSubscriptions extends StoreV2 {
markChanged(); markChanged();
return; return;
} }
this.subscriptionsManager.retainAll(n.listOf((Object[]) new Long[]{Long.valueOf(this.storeStream.getGuildSelected$app_productionBetaRelease().getSelectedGuildId()), Long.valueOf(this.storeStream.getRtcConnection$app_productionBetaRelease().getConnectedGuildId())})); this.subscriptionsManager.retainAll(n.listOf((Object[]) new Long[]{Long.valueOf(this.storeStream.getGuildSelected$app_productionGoogleRelease().getSelectedGuildId()), Long.valueOf(this.storeStream.getRtcConnection$app_productionGoogleRelease().getConnectedGuildId())}));
markChanged(); markChanged();
} }

View file

@ -249,8 +249,8 @@ public final class StoreGuilds extends StoreV2 {
private final void handleHasRoleAndJoinedAt(long j, Map<Long, com.discord.api.guildmember.GuildMember> map) { private final void handleHasRoleAndJoinedAt(long j, Map<Long, com.discord.api.guildmember.GuildMember> map) {
com.discord.api.guildmember.GuildMember guildMember; com.discord.api.guildmember.GuildMember guildMember;
Long l; Long l;
MeUser meInternal$app_productionBetaRelease = this.userStore.getMeInternal$app_productionBetaRelease(); MeUser meInternal$app_productionGoogleRelease = this.userStore.getMeInternal$app_productionGoogleRelease();
if (map != null && (guildMember = map.get(Long.valueOf(meInternal$app_productionBetaRelease.getId()))) != null) { if (map != null && (guildMember = map.get(Long.valueOf(meInternal$app_productionGoogleRelease.getId()))) != null) {
UtcDateTime d = guildMember.d(); UtcDateTime d = guildMember.d();
long f = d != null ? d.f() : 0; long f = d != null ? d.f() : 0;
if (!this.guildsJoinedAt.containsKey(Long.valueOf(j)) || (l = this.guildsJoinedAt.get(Long.valueOf(j))) == null || l.longValue() != f) { if (!this.guildsJoinedAt.containsKey(Long.valueOf(j)) || (l = this.guildsJoinedAt.get(Long.valueOf(j))) == null || l.longValue() != f) {
@ -265,12 +265,12 @@ public final class StoreGuilds extends StoreV2 {
} }
@StoreThread @StoreThread
public final Map<Long, Map<Long, GuildMember>> getGuildMembersComputedInternal$app_productionBetaRelease() { public final Map<Long, Map<Long, GuildMember>> getGuildMembersComputedInternal$app_productionGoogleRelease() {
return this.guildMembersComputed; return this.guildMembersComputed;
} }
@StoreThread @StoreThread
public final Map<Long, Map<Long, GuildRole>> getGuildRolesInternal$app_productionBetaRelease() { public final Map<Long, Map<Long, GuildRole>> getGuildRolesInternal$app_productionGoogleRelease() {
return this.guildRoles; return this.guildRoles;
} }
@ -279,7 +279,7 @@ public final class StoreGuilds extends StoreV2 {
} }
@StoreThread @StoreThread
public final Map<Long, Guild> getGuildsInternal$app_productionBetaRelease() { public final Map<Long, Guild> getGuildsInternal$app_productionGoogleRelease() {
return this.guilds; return this.guilds;
} }
@ -288,7 +288,7 @@ public final class StoreGuilds extends StoreV2 {
} }
@StoreThread @StoreThread
public final Map<Long, Long> getGuildsJoinedAtInternal$app_productionBetaRelease() { public final Map<Long, Long> getGuildsJoinedAtInternal$app_productionGoogleRelease() {
return this.guildsJoinedAt; return this.guildsJoinedAt;
} }
@ -315,7 +315,7 @@ public final class StoreGuilds extends StoreV2 {
} }
@StoreThread @StoreThread
public final Set<Long> getUnavailableGuildsInternal$app_productionBetaRelease() { public final Set<Long> getUnavailableGuildsInternal$app_productionGoogleRelease() {
return this.guildsUnavailable; return this.guildsUnavailable;
} }

View file

@ -348,14 +348,14 @@ public final class StoreGuildsSorted extends StoreV2 {
@StoreThread @StoreThread
private final void ensureValidPositions() { private final void ensureValidPositions() {
Map<Long, Guild> guildsInternal$app_productionBetaRelease = this.guildStore.getGuildsInternal$app_productionBetaRelease(); Map<Long, Guild> guildsInternal$app_productionGoogleRelease = this.guildStore.getGuildsInternal$app_productionGoogleRelease();
Set<Long> unavailableGuildsInternal$app_productionBetaRelease = this.guildStore.getUnavailableGuildsInternal$app_productionBetaRelease(); Set<Long> unavailableGuildsInternal$app_productionGoogleRelease = this.guildStore.getUnavailableGuildsInternal$app_productionGoogleRelease();
HashSet hashSet = new HashSet(); HashSet hashSet = new HashSet();
for (ModelGuildFolder modelGuildFolder : this.positions) { for (ModelGuildFolder modelGuildFolder : this.positions) {
hashSet.addAll(modelGuildFolder.getGuildIds()); hashSet.addAll(modelGuildFolder.getGuildIds());
} }
for (Guild guild : guildsInternal$app_productionBetaRelease.values()) { for (Guild guild : guildsInternal$app_productionGoogleRelease.values()) {
if (!hashSet.contains(Long.valueOf(guild.getId())) && !this.lurkingGuildStore.isLurking$app_productionBetaRelease(guild)) { if (!hashSet.contains(Long.valueOf(guild.getId())) && !this.lurkingGuildStore.isLurking$app_productionGoogleRelease(guild)) {
this.positions.add(0, new ModelGuildFolder(null, d0.t.m.listOf(Long.valueOf(guild.getId())), null, null, 8, null)); this.positions.add(0, new ModelGuildFolder(null, d0.t.m.listOf(Long.valueOf(guild.getId())), null, null, 8, null));
} }
} }
@ -370,8 +370,8 @@ public final class StoreGuildsSorted extends StoreV2 {
ArrayList arrayList = new ArrayList(); ArrayList arrayList = new ArrayList();
for (Object obj2 : guildIds) { for (Object obj2 : guildIds) {
long longValue = ((Number) obj2).longValue(); long longValue = ((Number) obj2).longValue();
Guild guild2 = guildsInternal$app_productionBetaRelease.get(Long.valueOf(longValue)); Guild guild2 = guildsInternal$app_productionGoogleRelease.get(Long.valueOf(longValue));
if (guildsInternal$app_productionBetaRelease.containsKey(Long.valueOf(longValue)) && !unavailableGuildsInternal$app_productionBetaRelease.contains(Long.valueOf(longValue)) && guild2 != null && !this.lurkingGuildStore.isLurking$app_productionBetaRelease(guild2)) { if (guildsInternal$app_productionGoogleRelease.containsKey(Long.valueOf(longValue)) && !unavailableGuildsInternal$app_productionGoogleRelease.contains(Long.valueOf(longValue)) && guild2 != null && !this.lurkingGuildStore.isLurking$app_productionGoogleRelease(guild2)) {
arrayList.add(obj2); arrayList.add(obj2);
} }
} }
@ -381,7 +381,7 @@ public final class StoreGuildsSorted extends StoreV2 {
Set<Long> lurkingGuildIdsSync = this.lurkingGuildStore.getLurkingGuildIdsSync(); Set<Long> lurkingGuildIdsSync = this.lurkingGuildStore.getLurkingGuildIdsSync();
ArrayList<Number> arrayList2 = new ArrayList(); ArrayList<Number> arrayList2 = new ArrayList();
for (Number number : lurkingGuildIdsSync) { for (Number number : lurkingGuildIdsSync) {
Guild guild3 = this.guildStore.getGuildsInternal$app_productionBetaRelease().get(Long.valueOf(number.longValue())); Guild guild3 = this.guildStore.getGuildsInternal$app_productionGoogleRelease().get(Long.valueOf(number.longValue()));
Long valueOf = guild3 != null ? Long.valueOf(guild3.getId()) : null; Long valueOf = guild3 != null ? Long.valueOf(guild3.getId()) : null;
if (valueOf != null) { if (valueOf != null) {
arrayList2.add(valueOf); arrayList2.add(valueOf);
@ -430,13 +430,13 @@ public final class StoreGuildsSorted extends StoreV2 {
List<Long> guildIds = modelGuildFolder.getGuildIds(); List<Long> guildIds = modelGuildFolder.getGuildIds();
ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(guildIds, 10)); ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(guildIds, 10));
for (Number number : guildIds) { for (Number number : guildIds) {
Guild guild = this.guildStore.getGuildsInternal$app_productionBetaRelease().get(Long.valueOf(number.longValue())); Guild guild = this.guildStore.getGuildsInternal$app_productionGoogleRelease().get(Long.valueOf(number.longValue()));
m.checkNotNull(guild); m.checkNotNull(guild);
arrayList.add(guild); arrayList.add(guild);
} }
this.entries.add(new Entry.Folder(longValue, arrayList, modelGuildFolder.getColor(), modelGuildFolder.getName())); this.entries.add(new Entry.Folder(longValue, arrayList, modelGuildFolder.getColor(), modelGuildFolder.getName()));
} else { } else {
Guild guild2 = this.guildStore.getGuildsInternal$app_productionBetaRelease().get(u.first((List<? extends Object>) modelGuildFolder.getGuildIds())); Guild guild2 = this.guildStore.getGuildsInternal$app_productionGoogleRelease().get(u.first((List<? extends Object>) modelGuildFolder.getGuildIds()));
m.checkNotNull(guild2); m.checkNotNull(guild2);
this.entries.add(new Entry.SingletonGuild(guild2)); this.entries.add(new Entry.SingletonGuild(guild2));
} }
@ -447,13 +447,13 @@ public final class StoreGuildsSorted extends StoreV2 {
@StoreThread @StoreThread
private final void updatePositions(State state) { private final void updatePositions(State state) {
this.positions.clear(); this.positions.clear();
Map<Long, Guild> guildsInternal$app_productionBetaRelease = this.guildStore.getGuildsInternal$app_productionBetaRelease(); Map<Long, Guild> guildsInternal$app_productionGoogleRelease = this.guildStore.getGuildsInternal$app_productionGoogleRelease();
if (!state.getUserSettingsGuildPositions().isEmpty()) { if (!state.getUserSettingsGuildPositions().isEmpty()) {
this.positions.addAll(state.getUserSettingsGuildPositions()); this.positions.addAll(state.getUserSettingsGuildPositions());
return; return;
} }
List<ModelGuildFolder> list = this.positions; List<ModelGuildFolder> list = this.positions;
List<Number> sortedWith = u.sortedWith(guildsInternal$app_productionBetaRelease.keySet(), new StoreGuildsSorted$updatePositions$1(state, guildsInternal$app_productionBetaRelease)); List<Number> sortedWith = u.sortedWith(guildsInternal$app_productionGoogleRelease.keySet(), new StoreGuildsSorted$updatePositions$1(state, guildsInternal$app_productionGoogleRelease));
ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(sortedWith, 10)); ArrayList arrayList = new ArrayList(o.collectionSizeOrDefault(sortedWith, 10));
for (Number number : sortedWith) { for (Number number : sortedWith) {
arrayList.add(new ModelGuildFolder(null, d0.t.m.listOf(Long.valueOf(number.longValue())), null, null, 8, null)); arrayList.add(new ModelGuildFolder(null, d0.t.m.listOf(Long.valueOf(number.longValue())), null, null, 8, null));

View file

@ -195,7 +195,7 @@ public final class StoreInviteSettings extends Store {
this.inviteSettingsSubject.onNext(settings); this.inviteSettingsSubject.onNext(settings);
} }
public final void trackWithInvite$app_productionBetaRelease(Class<?> cls, Function1<? super ModelInvite, Unit> function1) { public final void trackWithInvite$app_productionGoogleRelease(Class<?> cls, Function1<? super ModelInvite, Unit> function1) {
m.checkNotNullParameter(cls, "clazz"); m.checkNotNullParameter(cls, "clazz");
m.checkNotNullParameter(function1, "trackBlock"); m.checkNotNullParameter(function1, "trackBlock");
Observable<ModelInvite> y2 = getInvite().y(StoreInviteSettings$trackWithInvite$1.INSTANCE); Observable<ModelInvite> y2 = getInvite().y(StoreInviteSettings$trackWithInvite$1.INSTANCE);

View file

@ -23,7 +23,7 @@ public final class StoreLurking$startLurkingAndNavigate$1$1$jumpToDestination$1
Long l; Long l;
Long l2 = this.$channelId; Long l2 = this.$channelId;
if (l2 == null || ((l2 != null && l2.longValue() == 0) || ((l = this.$channelId) != null && l.longValue() == -1))) { if (l2 == null || ((l2 != null && l2.longValue() == 0) || ((l = this.$channelId) != null && l.longValue() == -1))) {
StoreLurking.access$getStream$p(this.this$0.this$0.this$0).getGuildSelected$app_productionBetaRelease().set(this.this$0.this$0.$guildId); StoreLurking.access$getStream$p(this.this$0.this$0.this$0).getGuildSelected$app_productionGoogleRelease().set(this.this$0.this$0.$guildId);
} else { } else {
ChannelSelector.selectChannel$default(ChannelSelector.Companion.getInstance(), this.this$0.this$0.$guildId, this.$channelId.longValue(), null, null, 12, null); ChannelSelector.selectChannel$default(ChannelSelector.Companion.getInstance(), this.this$0.this$0.$guildId, this.$channelId.longValue(), null, null, 12, null);
} }

View file

@ -30,7 +30,7 @@ public final class StoreLurking$startLurkingInternal$4 extends o implements Func
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
if (!this.this$0.this$0.isLurking$app_productionBetaRelease(this.$it)) { if (!this.this$0.this$0.isLurking$app_productionGoogleRelease(this.$it)) {
StoreLurking.access$getLurkedGuilds$p(this.this$0.this$0).remove(Long.valueOf(this.this$0.$guildId)); StoreLurking.access$getLurkedGuilds$p(this.this$0.this$0).remove(Long.valueOf(this.this$0.$guildId));
StoreLurking.access$getLurkedGuildsSubject$p(this.this$0.this$0).onNext(StoreLurking.access$getLurkedGuilds$p(this.this$0.this$0)); StoreLurking.access$getLurkedGuildsSubject$p(this.this$0.this$0).onNext(StoreLurking.access$getLurkedGuilds$p(this.this$0.this$0));
} }

View file

@ -274,8 +274,8 @@ public final class StoreLurking {
Logger.w$default(appLog, "Cannot lurk " + j + ':' + l + " with no session", null, 2, null); Logger.w$default(appLog, "Cannot lurk " + j + ':' + l + " with no session", null, 2, null);
function0.mo1invoke(); function0.mo1invoke();
} else if (j != 0 || j == -1) { } else if (j != 0 || j == -1) {
Guild guild = this.stream.getGuilds$app_productionBetaRelease().getGuildsInternal$app_productionBetaRelease().get(Long.valueOf(j)); Guild guild = this.stream.getGuilds$app_productionGoogleRelease().getGuildsInternal$app_productionGoogleRelease().get(Long.valueOf(j));
if (guild == null || isLurking$app_productionBetaRelease(guild)) { if (guild == null || isLurking$app_productionGoogleRelease(guild)) {
this.lurkedGuilds.put(Long.valueOf(j), new LurkContext(j, z2)); this.lurkedGuilds.put(Long.valueOf(j), new LurkContext(j, z2));
this.lurkedGuildsSubject.onNext(this.lurkedGuilds); this.lurkedGuildsSubject.onNext(this.lurkedGuilds);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().joinGuild(j, true, this.sessionId), false, 1, null), StoreLurking.class, (Context) null, (Function1) null, new StoreLurking$startLurkingInternal$3(this, j), (Function0) null, (Function0) null, new StoreLurking$startLurkingInternal$4(this, j, function3, l), 54, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().joinGuild(j, true, this.sessionId), false, 1, null), StoreLurking.class, (Context) null, (Function1) null, new StoreLurking$startLurkingInternal$3(this, j), (Function0) null, (Function0) null, new StoreLurking$startLurkingInternal$4(this, j, function3, l), 54, (Object) null);
@ -320,7 +320,7 @@ public final class StoreLurking {
} }
@StoreThread @StoreThread
public final void handleConnectionOpen$app_productionBetaRelease(ModelPayload modelPayload) { public final void handleConnectionOpen$app_productionGoogleRelease(ModelPayload modelPayload) {
m.checkNotNullParameter(modelPayload, "payload"); m.checkNotNullParameter(modelPayload, "payload");
this.sessionId = modelPayload.getSessionId(); this.sessionId = modelPayload.getSessionId();
LurkRequest lurkRequest = this.lurkRequest; LurkRequest lurkRequest = this.lurkRequest;
@ -332,27 +332,27 @@ public final class StoreLurking {
} }
@StoreThread @StoreThread
public final void handleGuildAdd$app_productionBetaRelease(com.discord.api.guild.Guild guild) { public final void handleGuildAdd$app_productionGoogleRelease(com.discord.api.guild.Guild guild) {
LurkContext lurkContext; LurkContext lurkContext;
m.checkNotNullParameter(guild, "guild"); m.checkNotNullParameter(guild, "guild");
if (!this.lurkedGuilds.keySet().contains(Long.valueOf(guild.o()))) { if (!this.lurkedGuilds.keySet().contains(Long.valueOf(guild.o()))) {
return; return;
} }
if (guild.p() == null && (lurkContext = this.lurkedGuilds.get(Long.valueOf(guild.o()))) != null && lurkContext.getShouldNavigate()) { if (guild.p() == null && (lurkContext = this.lurkedGuilds.get(Long.valueOf(guild.o()))) != null && lurkContext.getShouldNavigate()) {
this.stream.getGuildSelected$app_productionBetaRelease().handleGuildSelected(guild.o()); this.stream.getGuildSelected$app_productionGoogleRelease().handleGuildSelected(guild.o());
} else if (guild.p() != null) { } else if (guild.p() != null) {
stopLurkingInternal(guild.o()); stopLurkingInternal(guild.o());
} }
} }
@StoreThread @StoreThread
public final void handleGuildRemove$app_productionBetaRelease(com.discord.api.guild.Guild guild) { public final void handleGuildRemove$app_productionGoogleRelease(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild"); m.checkNotNullParameter(guild, "guild");
stopLurkingInternal(guild.o()); stopLurkingInternal(guild.o());
} }
@StoreThread @StoreThread
public final void handleGuildSelected$app_productionBetaRelease(long j) { public final void handleGuildSelected$app_productionGoogleRelease(long j) {
LurkRequest lurkRequest = this.lurkRequest; LurkRequest lurkRequest = this.lurkRequest;
if ((lurkRequest == null || j != lurkRequest.getGuildId()) && this.sessionId != null) { if ((lurkRequest == null || j != lurkRequest.getGuildId()) && this.sessionId != null) {
this.lurkRequest = null; this.lurkRequest = null;
@ -361,8 +361,8 @@ public final class StoreLurking {
} }
@StoreThread @StoreThread
public final void handleVoiceChannelSelected$app_productionBetaRelease(long j) { public final void handleVoiceChannelSelected$app_productionGoogleRelease(long j) {
Channel channel = this.stream.getChannels$app_productionBetaRelease().getChannel(j); Channel channel = this.stream.getChannels$app_productionGoogleRelease().getChannel(j);
Set<Long> keySet = this.lurkedGuilds.keySet(); Set<Long> keySet = this.lurkedGuilds.keySet();
ArrayList<Number> arrayList = new ArrayList(); ArrayList<Number> arrayList = new ArrayList();
for (Object obj : keySet) { for (Object obj : keySet) {
@ -372,26 +372,26 @@ public final class StoreLurking {
} }
for (Number number : arrayList) { for (Number number : arrayList) {
long longValue = number.longValue(); long longValue = number.longValue();
if (longValue != this.stream.getGuildSelected$app_productionBetaRelease().getSelectedGuildIdInternal$app_productionBetaRelease()) { if (longValue != this.stream.getGuildSelected$app_productionGoogleRelease().getSelectedGuildIdInternal$app_productionGoogleRelease()) {
postLeaveGuild$default(this, longValue, null, null, 6, null); postLeaveGuild$default(this, longValue, null, null, 6, null);
} }
} }
} }
@StoreThread @StoreThread
public final boolean isLurking$app_productionBetaRelease(com.discord.api.guild.Guild guild) { public final boolean isLurking$app_productionGoogleRelease(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild"); m.checkNotNullParameter(guild, "guild");
return Companion.access$isLurking(Companion, guild.p() != null, guild.o(), this.lurkedGuilds.keySet()); return Companion.access$isLurking(Companion, guild.p() != null, guild.o(), this.lurkedGuilds.keySet());
} }
@StoreThread @StoreThread
public final boolean isLurking$app_productionBetaRelease(Guild guild) { public final boolean isLurking$app_productionGoogleRelease(Guild guild) {
m.checkNotNullParameter(guild, "guild"); m.checkNotNullParameter(guild, "guild");
return Companion.access$isLurking(Companion, guild.getJoinedAt() != null, guild.getId(), this.lurkedGuilds.keySet()); return Companion.access$isLurking(Companion, guild.getJoinedAt() != null, guild.getId(), this.lurkedGuilds.keySet());
} }
public final Observable<Boolean> isLurkingObs(long j) { public final Observable<Boolean> isLurkingObs(long j) {
Observable<Boolean> s2 = Observable.j(getLurkingGuildIds(), this.stream.getGuilds$app_productionBetaRelease().observeGuild(j), StoreLurking$isLurkingObs$1.INSTANCE).s(); Observable<Boolean> s2 = Observable.j(getLurkingGuildIds(), this.stream.getGuilds$app_productionGoogleRelease().observeGuild(j), StoreLurking$isLurkingObs$1.INSTANCE).s();
m.checkNotNullExpressionValue(s2, "Observable\n .co… .distinctUntilChanged()"); m.checkNotNullExpressionValue(s2, "Observable\n .co… .distinctUntilChanged()");
return s2; return s2;
} }
@ -401,7 +401,7 @@ public final class StoreLurking {
} }
public final void removeOldLurkingGuilds(long j) { public final void removeOldLurkingGuilds(long j) {
Channel channel = this.stream.getChannels$app_productionBetaRelease().getChannel(this.stream.getVoiceChannelSelected$app_productionBetaRelease().getSelectedVoiceChannelId()); Channel channel = this.stream.getChannels$app_productionGoogleRelease().getChannel(this.stream.getVoiceChannelSelected$app_productionGoogleRelease().getSelectedVoiceChannelId());
Long valueOf = channel != null ? Long.valueOf(channel.e()) : null; Long valueOf = channel != null ? Long.valueOf(channel.e()) : null;
Set<Long> keySet = this.lurkedGuilds.keySet(); Set<Long> keySet = this.lurkedGuilds.keySet();
ArrayList<Number> arrayList = new ArrayList(); ArrayList<Number> arrayList = new ArrayList();
@ -413,7 +413,7 @@ public final class StoreLurking {
} }
ArrayList<Guild> arrayList2 = new ArrayList(); ArrayList<Guild> arrayList2 = new ArrayList();
for (Number number : arrayList) { for (Number number : arrayList) {
Guild guild = this.guildsStore.getGuildsInternal$app_productionBetaRelease().get(Long.valueOf(number.longValue())); Guild guild = this.guildsStore.getGuildsInternal$app_productionGoogleRelease().get(Long.valueOf(number.longValue()));
if (guild != null) { if (guild != null) {
arrayList2.add(guild); arrayList2.add(guild);
} }

View file

@ -113,7 +113,7 @@ public final class StoreMFA extends StoreV2 {
@StoreThread @StoreThread
public final void handleUserUpdated(User user) { public final void handleUserUpdated(User user) {
m.checkNotNullParameter(user, "user"); m.checkNotNullParameter(user, "user");
if (user.i() == this.stream.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId()) { if (user.i() == this.stream.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId()) {
this.state = new State(MFAActivationState.NONE, false); this.state = new State(MFAActivationState.NONE, false);
markChanged(); markChanged();
} }

View file

@ -544,7 +544,7 @@ public final class StoreMediaEngine extends Store {
m.checkNotNullParameter(engineListener, "listener"); m.checkNotNullParameter(engineListener, "listener");
jVar.e.add(engineListener); jVar.e.add(engineListener);
this.mediaEngine = jVar; this.mediaEngine = jVar;
Observable<R> G = this.storeStream.getExperiments$app_productionBetaRelease().observeUserExperiment("2021-05_opensl_default_enable_android", true).y(ObservableExtensionsKt$filterNull$1.INSTANCE).G(ObservableExtensionsKt$filterNull$2.INSTANCE); Observable<R> G = this.storeStream.getExperiments$app_productionGoogleRelease().observeUserExperiment("2021-05_opensl_default_enable_android", true).y(ObservableExtensionsKt$filterNull$1.INSTANCE).G(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(G, "filter { it != null }.map { it!! }"); m.checkNotNullExpressionValue(G, "filter { it != null }.map { it!! }");
Observable a02 = G.a0(1); Observable a02 = G.a0(1);
m.checkNotNullExpressionValue(a02, "storeStream.experiments.…erNull()\n .take(1)"); m.checkNotNullExpressionValue(a02, "storeStream.experiments.…erNull()\n .take(1)");

View file

@ -518,8 +518,8 @@ public final class StoreMediaSettings extends Store {
@StoreThread @StoreThread
public final void handleVoiceChannelSelected(long j) { public final void handleVoiceChannelSelected(long j) {
Channel findChannelByIdInternal$app_productionBetaRelease = this.storeChannels.findChannelByIdInternal$app_productionBetaRelease(j); Channel findChannelByIdInternal$app_productionGoogleRelease = this.storeChannels.findChannelByIdInternal$app_productionGoogleRelease(j);
if (findChannelByIdInternal$app_productionBetaRelease != null && AnimatableValueParser.r1(findChannelByIdInternal$app_productionBetaRelease)) { if (findChannelByIdInternal$app_productionGoogleRelease != null && AnimatableValueParser.r1(findChannelByIdInternal$app_productionGoogleRelease)) {
setSelfDeafen(false); setSelfDeafen(false);
} }
} }

View file

@ -23,6 +23,6 @@ public final class StoreMentions$handleConnectionOpen$5 extends o implements Fun
public final boolean invoke(ModelReadState modelReadState) { public final boolean invoke(ModelReadState modelReadState) {
m.checkNotNullParameter(modelReadState, "readState"); m.checkNotNullParameter(modelReadState, "readState");
return !StoreMentions.access$getStoreChannels$p(this.this$0).getChannelNamesInternal$app_productionBetaRelease().containsKey(Long.valueOf(modelReadState.getChannelId())); return !StoreMentions.access$getStoreChannels$p(this.this$0).getChannelNamesInternal$app_productionGoogleRelease().containsKey(Long.valueOf(modelReadState.getChannelId()));
} }
} }

View file

@ -147,8 +147,8 @@ public final class StoreMentions extends StoreV2 {
if (modelMessage.getAuthor().i() == this.myId || modelMessage.getEditedTimestamp() > 0) { if (modelMessage.getAuthor().i() == this.myId || modelMessage.getEditedTimestamp() > 0) {
return false; return false;
} }
Map<Long, ModelNotificationSettings> guildSettingsInternal$app_productionBetaRelease = this.storeUserGuildSettings.getGuildSettingsInternal$app_productionBetaRelease(); Map<Long, ModelNotificationSettings> guildSettingsInternal$app_productionGoogleRelease = this.storeUserGuildSettings.getGuildSettingsInternal$app_productionGoogleRelease();
if (this.privateChannels.contains(Long.valueOf(modelMessage.getChannelId())) && ((modelNotificationSettings = guildSettingsInternal$app_productionBetaRelease.get(0L)) == null || (channelOverride = modelNotificationSettings.getChannelOverride(modelMessage.getChannelId())) == null || !channelOverride.isMuted())) { if (this.privateChannels.contains(Long.valueOf(modelMessage.getChannelId())) && ((modelNotificationSettings = guildSettingsInternal$app_productionGoogleRelease.get(0L)) == null || (channelOverride = modelNotificationSettings.getChannelOverride(modelMessage.getChannelId())) == null || !channelOverride.isMuted())) {
return true; return true;
} }
List<User> mentions = modelMessage.getMentions(); List<User> mentions = modelMessage.getMentions();
@ -174,7 +174,7 @@ public final class StoreMentions extends StoreV2 {
if (!z2) { if (!z2) {
return true; return true;
} }
ModelNotificationSettings modelNotificationSettings2 = guildSettingsInternal$app_productionBetaRelease.get(Long.valueOf(longValue)); ModelNotificationSettings modelNotificationSettings2 = guildSettingsInternal$app_productionGoogleRelease.get(Long.valueOf(longValue));
if (!((modelNotificationSettings2 != null && modelNotificationSettings2.isSuppressRoles()) || (list = this.myRoleIds.get(Long.valueOf(longValue))) == null || (mentionRoles = modelMessage.getMentionRoles()) == null)) { if (!((modelNotificationSettings2 != null && modelNotificationSettings2.isSuppressRoles()) || (list = this.myRoleIds.get(Long.valueOf(longValue))) == null || (mentionRoles = modelMessage.getMentionRoles()) == null)) {
Iterator<T> it2 = mentionRoles.iterator(); Iterator<T> it2 = mentionRoles.iterator();
if (it2.hasNext()) { if (it2.hasNext()) {
@ -184,7 +184,7 @@ public final class StoreMentions extends StoreV2 {
if (!modelMessage.isMentionEveryone()) { if (!modelMessage.isMentionEveryone()) {
return false; return false;
} }
ModelNotificationSettings modelNotificationSettings3 = guildSettingsInternal$app_productionBetaRelease.get(Long.valueOf(longValue)); ModelNotificationSettings modelNotificationSettings3 = guildSettingsInternal$app_productionGoogleRelease.get(Long.valueOf(longValue));
return modelNotificationSettings3 == null || !modelNotificationSettings3.isSuppressEveryone(); return modelNotificationSettings3 == null || !modelNotificationSettings3.isSuppressEveryone();
} }
z2 = false; z2 = false;
@ -417,7 +417,7 @@ public final class StoreMentions extends StoreV2 {
} }
@StoreThread @StoreThread
public final int processMarkUnread$app_productionBetaRelease(long j, List<? extends ModelMessage> list) { public final int processMarkUnread$app_productionGoogleRelease(long j, List<? extends ModelMessage> list) {
m.checkNotNullParameter(list, "messagesAfter"); m.checkNotNullParameter(list, "messagesAfter");
int i = 0; int i = 0;
for (ModelMessage modelMessage : list) { for (ModelMessage modelMessage : list) {

View file

@ -23,15 +23,15 @@ public final class StoreMessageAck$ack$1 extends o implements Function0<Unit> {
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
Channel findChannelByIdInternal$app_productionBetaRelease = StoreMessageAck.access$getStream$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(this.$channelId); Channel findChannelByIdInternal$app_productionGoogleRelease = StoreMessageAck.access$getStream$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(this.$channelId);
if (findChannelByIdInternal$app_productionBetaRelease == null) { if (findChannelByIdInternal$app_productionGoogleRelease == null) {
return; return;
} }
if (findChannelByIdInternal$app_productionBetaRelease.z() != 4) { if (findChannelByIdInternal$app_productionGoogleRelease.z() != 4) {
StoreMessageAck.access$internalAck(this.this$0, findChannelByIdInternal$app_productionBetaRelease, this.$isLockedAck, this.$clearLock); StoreMessageAck.access$internalAck(this.this$0, findChannelByIdInternal$app_productionGoogleRelease, this.$isLockedAck, this.$clearLock);
return; return;
} }
for (Channel channel : StoreMessageAck.access$getStream$p(this.this$0).getChannels$app_productionBetaRelease().findChannelsByCategoryInternal$app_productionBetaRelease(findChannelByIdInternal$app_productionBetaRelease.e(), findChannelByIdInternal$app_productionBetaRelease.g())) { for (Channel channel : StoreMessageAck.access$getStream$p(this.this$0).getChannels$app_productionGoogleRelease().findChannelsByCategoryInternal$app_productionGoogleRelease(findChannelByIdInternal$app_productionGoogleRelease.e(), findChannelByIdInternal$app_productionGoogleRelease.g())) {
StoreMessageAck.access$internalAck(this.this$0, channel, this.$isLockedAck, this.$clearLock); StoreMessageAck.access$internalAck(this.this$0, channel, this.$isLockedAck, this.$clearLock);
} }
} }

View file

@ -55,8 +55,8 @@ public final class StoreMessageAck$getPendingAck$2<T, R> implements b<Long, Obse
if (l.longValue() <= 0) { if (l.longValue() <= 0) {
return new j(StoreMessageAck.PendingAck.Companion.getEMPTY()); return new j(StoreMessageAck.PendingAck.Companion.getEMPTY());
} }
StoreMessageAck messageAck$app_productionBetaRelease = StoreMessageAck.access$getStream$p(this.this$0).getMessageAck$app_productionBetaRelease(); StoreMessageAck messageAck$app_productionGoogleRelease = StoreMessageAck.access$getStream$p(this.this$0).getMessageAck$app_productionGoogleRelease();
m.checkNotNullExpressionValue(l, "channelId"); m.checkNotNullExpressionValue(l, "channelId");
return Observable.i(messageAck$app_productionBetaRelease.observeForChannel(l.longValue()), StoreMessageAck.access$getStream$p(this.this$0).getMessagesMostRecent$app_productionBetaRelease().observeRecentMessageIds(l.longValue()), StoreMessageAck.access$observeThreadState(this.this$0, l.longValue()), new AnonymousClass1(this, l)); return Observable.i(messageAck$app_productionGoogleRelease.observeForChannel(l.longValue()), StoreMessageAck.access$getStream$p(this.this$0).getMessagesMostRecent$app_productionGoogleRelease().observeRecentMessageIds(l.longValue()), StoreMessageAck.access$observeThreadState(this.this$0, l.longValue()), new AnonymousClass1(this, l));
} }
} }

View file

@ -70,9 +70,9 @@ public final class StoreMessageAck$init$1<T, R> implements b<Long, Observable<?
} }
public final Observable<? extends Long> call(Long l) { public final Observable<? extends Long> call(Long l) {
Observable<Set<Long>> o = StoreMessageAck.access$getStream$p(this.this$0).getMessages$app_productionBetaRelease().getAllDetached().o(50, TimeUnit.MILLISECONDS); Observable<Set<Long>> o = StoreMessageAck.access$getStream$p(this.this$0).getMessages$app_productionGoogleRelease().getAllDetached().o(50, TimeUnit.MILLISECONDS);
StoreMessagesLoader messagesLoader$app_productionBetaRelease = StoreMessageAck.access$getStream$p(this.this$0).getMessagesLoader$app_productionBetaRelease(); StoreMessagesLoader messagesLoader$app_productionGoogleRelease = StoreMessageAck.access$getStream$p(this.this$0).getMessagesLoader$app_productionGoogleRelease();
m.checkNotNullExpressionValue(l, "selectedChannelId"); m.checkNotNullExpressionValue(l, "selectedChannelId");
return Observable.h(o, messagesLoader$app_productionBetaRelease.getMessagesLoadedState(l.longValue()).G(AnonymousClass1.INSTANCE).s(), StoreMessageAck.access$getStream$p(this.this$0).getChat$app_productionBetaRelease().observeInteractionState().y(new AnonymousClass2(l)), StoreMessageAck.access$getStream$p(this.this$0).getMessageAck$app_productionBetaRelease().observeForChannel(l.longValue()), AnonymousClass3.INSTANCE); return Observable.h(o, messagesLoader$app_productionGoogleRelease.getMessagesLoadedState(l.longValue()).G(AnonymousClass1.INSTANCE).s(), StoreMessageAck.access$getStream$p(this.this$0).getChat$app_productionGoogleRelease().observeInteractionState().y(new AnonymousClass2(l)), StoreMessageAck.access$getStream$p(this.this$0).getMessageAck$app_productionGoogleRelease().observeForChannel(l.longValue()), AnonymousClass3.INSTANCE);
} }
} }

View file

@ -82,11 +82,11 @@ public final class StoreMessageAck$markUnread$3 extends o implements Function1<P
StoreMessageAck.Ack ack = new StoreMessageAck.Ack(modelMessage2 != null ? modelMessage2.getId() : (((this.this$0.$messageId >>> 22) - 1) - 1420070400000L) << 22, false, true); StoreMessageAck.Ack ack = new StoreMessageAck.Ack(modelMessage2 != null ? modelMessage2.getId() : (((this.this$0.$messageId >>> 22) - 1) - 1420070400000L) << 22, false, true);
StoreMessageAck$markUnread$3 storeMessageAck$markUnread$3 = this.this$0; StoreMessageAck$markUnread$3 storeMessageAck$markUnread$3 = this.this$0;
StoreMessageAck.access$updateAcks(storeMessageAck$markUnread$3.this$0, storeMessageAck$markUnread$3.$channelId, ack); StoreMessageAck.access$updateAcks(storeMessageAck$markUnread$3.this$0, storeMessageAck$markUnread$3.$channelId, ack);
int processMarkUnread$app_productionBetaRelease = StoreStream.Companion.getMentions().processMarkUnread$app_productionBetaRelease(this.this$0.$channelId, S2); int processMarkUnread$app_productionGoogleRelease = StoreStream.Companion.getMentions().processMarkUnread$app_productionGoogleRelease(this.this$0.$channelId, S2);
StoreMessageAck storeMessageAck = this.this$0.this$0; StoreMessageAck storeMessageAck = this.this$0.this$0;
j jVar = new j(new StoreMessageAck.PendingAck(this.this$0.$channelId, ack)); j jVar = new j(new StoreMessageAck.PendingAck(this.this$0.$channelId, ack));
m.checkNotNullExpressionValue(jVar, "Observable.just(PendingAck(channelId, ack))"); m.checkNotNullExpressionValue(jVar, "Observable.just(PendingAck(channelId, ack))");
StoreMessageAck.access$postPendingAck(storeMessageAck, jVar, processMarkUnread$app_productionBetaRelease); StoreMessageAck.access$postPendingAck(storeMessageAck, jVar, processMarkUnread$app_productionGoogleRelease);
} }
} }

View file

@ -42,6 +42,6 @@ public final class StoreMessageAck$observeThreadState$1<T, R> implements b<Chann
} }
public final Observable<? extends StoreMessageAck.ThreadState> call(Channel channel) { public final Observable<? extends StoreMessageAck.ThreadState> call(Channel channel) {
return (channel == null || !AnimatableValueParser.y1(channel)) ? new j(StoreMessageAck.ThreadState.NotThread.INSTANCE) : StoreMessageAck.access$getStream$p(this.this$0).getThreadsActiveJoined$app_productionBetaRelease().observeAllActiveJoinedThreadsById().G(new AnonymousClass1(this)); return (channel == null || !AnimatableValueParser.y1(channel)) ? new j(StoreMessageAck.ThreadState.NotThread.INSTANCE) : StoreMessageAck.access$getStream$p(this.this$0).getThreadsActiveJoined$app_productionGoogleRelease().observeAllActiveJoinedThreadsById().G(new AnonymousClass1(this));
} }
} }

View file

@ -385,7 +385,7 @@ public final class StoreMessageAck extends StoreV2 {
@StoreThread @StoreThread
private final ThreadState getThreadStateInternal(long j) { private final ThreadState getThreadStateInternal(long j) {
return !this.stream.getChannels$app_productionBetaRelease().getThreadsByIdInternal$app_productionBetaRelease().containsKey(Long.valueOf(j)) ? ThreadState.NotThread.INSTANCE : new ThreadState.Thread(this.stream.getThreadsActiveJoined$app_productionBetaRelease().getActiveJoinedThreadsInternal$app_productionBetaRelease().containsKey(Long.valueOf(j))); return !this.stream.getChannels$app_productionGoogleRelease().getThreadsByIdInternal$app_productionGoogleRelease().containsKey(Long.valueOf(j)) ? ThreadState.NotThread.INSTANCE : new ThreadState.Thread(this.stream.getThreadsActiveJoined$app_productionGoogleRelease().getActiveJoinedThreadsInternal$app_productionGoogleRelease().containsKey(Long.valueOf(j)));
} }
private final void internalAck(Channel channel, boolean z2, boolean z3) { private final void internalAck(Channel channel, boolean z2, boolean z3) {
@ -395,13 +395,13 @@ public final class StoreMessageAck extends StoreV2 {
} }
private final Observable<Pair<Set<Long>, Set<Long>>> observeActiveJoinedThreadIdsWithPrevious() { private final Observable<Pair<Set<Long>, Set<Long>>> observeActiveJoinedThreadIdsWithPrevious() {
Observable<Pair<Set<Long>, Set<Long>>> Q = this.stream.getThreadsActiveJoined$app_productionBetaRelease().observeAllActiveJoinedThreadsById().G(StoreMessageAck$observeActiveJoinedThreadIdsWithPrevious$1.INSTANCE).s().Q(new Pair(n0.emptySet(), n0.emptySet()), StoreMessageAck$observeActiveJoinedThreadIdsWithPrevious$2.INSTANCE); Observable<Pair<Set<Long>, Set<Long>>> Q = this.stream.getThreadsActiveJoined$app_productionGoogleRelease().observeAllActiveJoinedThreadsById().G(StoreMessageAck$observeActiveJoinedThreadIdsWithPrevious$1.INSTANCE).s().Q(new Pair(n0.emptySet(), n0.emptySet()), StoreMessageAck$observeActiveJoinedThreadIdsWithPrevious$2.INSTANCE);
m.checkNotNullExpressionValue(Q, "stream\n .threadsA…oinedThreadIds)\n }"); m.checkNotNullExpressionValue(Q, "stream\n .threadsA…oinedThreadIds)\n }");
return Q; return Q;
} }
private final Observable<ThreadState> observeThreadState(long j) { private final Observable<ThreadState> observeThreadState(long j) {
Observable<ThreadState> s2 = this.stream.getChannels$app_productionBetaRelease().observeChannel(j).Z(new StoreMessageAck$observeThreadState$1(this, j)).s(); Observable<ThreadState> s2 = this.stream.getChannels$app_productionGoogleRelease().observeChannel(j).Z(new StoreMessageAck$observeThreadState$1(this, j)).s();
m.checkNotNullExpressionValue(s2, "stream\n .channe… .distinctUntilChanged()"); m.checkNotNullExpressionValue(s2, "stream\n .channe… .distinctUntilChanged()");
return s2; return s2;
} }
@ -422,13 +422,13 @@ public final class StoreMessageAck extends StoreV2 {
@StoreThread @StoreThread
private final void pruneAcks() { private final void pruneAcks() {
if (!(!this.stream.getGuilds$app_productionBetaRelease().getUnavailableGuildsInternal$app_productionBetaRelease().isEmpty())) { if (!(!this.stream.getGuilds$app_productionGoogleRelease().getUnavailableGuildsInternal$app_productionGoogleRelease().isEmpty())) {
Map<Long, Channel> channelsByIdInternal$app_productionBetaRelease = this.stream.getChannels$app_productionBetaRelease().getChannelsByIdInternal$app_productionBetaRelease(); Map<Long, Channel> channelsByIdInternal$app_productionGoogleRelease = this.stream.getChannels$app_productionGoogleRelease().getChannelsByIdInternal$app_productionGoogleRelease();
Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread> activeJoinedThreadsInternal$app_productionBetaRelease = this.stream.getThreadsActiveJoined$app_productionBetaRelease().getActiveJoinedThreadsInternal$app_productionBetaRelease(); Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread> activeJoinedThreadsInternal$app_productionGoogleRelease = this.stream.getThreadsActiveJoined$app_productionGoogleRelease().getActiveJoinedThreadsInternal$app_productionGoogleRelease();
Iterator<Long> it = this.acks.keySet().iterator(); Iterator<Long> it = this.acks.keySet().iterator();
while (it.hasNext()) { while (it.hasNext()) {
long longValue = it.next().longValue(); long longValue = it.next().longValue();
if (!channelsByIdInternal$app_productionBetaRelease.containsKey(Long.valueOf(longValue)) && !activeJoinedThreadsInternal$app_productionBetaRelease.containsKey(Long.valueOf(longValue))) { if (!channelsByIdInternal$app_productionGoogleRelease.containsKey(Long.valueOf(longValue)) && !activeJoinedThreadsInternal$app_productionGoogleRelease.containsKey(Long.valueOf(longValue))) {
it.remove(); it.remove();
markChanged(); markChanged();
} }
@ -460,7 +460,7 @@ public final class StoreMessageAck extends StoreV2 {
@StoreThread @StoreThread
private final void updateThreadAcks(Set<Long> set, Set<Long> set2) { private final void updateThreadAcks(Set<Long> set, Set<Long> set2) {
StoreThreadsActiveJoined.ActiveJoinedThread activeJoinedThread; StoreThreadsActiveJoined.ActiveJoinedThread activeJoinedThread;
if (this.stream.getGuilds$app_productionBetaRelease().getUnavailableGuildsInternal$app_productionBetaRelease().isEmpty()) { if (this.stream.getGuilds$app_productionGoogleRelease().getUnavailableGuildsInternal$app_productionGoogleRelease().isEmpty()) {
for (Number number : o0.minus((Set) set, (Iterable) set2)) { for (Number number : o0.minus((Set) set, (Iterable) set2)) {
long longValue = number.longValue(); long longValue = number.longValue();
if (this.acks.containsKey(Long.valueOf(longValue)) && this.acks.remove(Long.valueOf(longValue)) != null) { if (this.acks.containsKey(Long.valueOf(longValue)) && this.acks.remove(Long.valueOf(longValue)) != null) {
@ -468,12 +468,12 @@ public final class StoreMessageAck extends StoreV2 {
} }
} }
} }
Map<Long, Long> guildsJoinedAtInternal$app_productionBetaRelease = this.stream.getGuilds$app_productionBetaRelease().getGuildsJoinedAtInternal$app_productionBetaRelease(); Map<Long, Long> guildsJoinedAtInternal$app_productionGoogleRelease = this.stream.getGuilds$app_productionGoogleRelease().getGuildsJoinedAtInternal$app_productionGoogleRelease();
Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread> activeJoinedThreadsInternal$app_productionBetaRelease = this.stream.getThreadsActiveJoined$app_productionBetaRelease().getActiveJoinedThreadsInternal$app_productionBetaRelease(); Map<Long, StoreThreadsActiveJoined.ActiveJoinedThread> activeJoinedThreadsInternal$app_productionGoogleRelease = this.stream.getThreadsActiveJoined$app_productionGoogleRelease().getActiveJoinedThreadsInternal$app_productionGoogleRelease();
for (Number number2 : o0.minus((Set) set2, (Iterable) set)) { for (Number number2 : o0.minus((Set) set2, (Iterable) set)) {
long longValue2 = number2.longValue(); long longValue2 = number2.longValue();
if (!this.acks.containsKey(Long.valueOf(longValue2)) && (activeJoinedThread = activeJoinedThreadsInternal$app_productionBetaRelease.get(Long.valueOf(longValue2))) != null) { if (!this.acks.containsKey(Long.valueOf(longValue2)) && (activeJoinedThread = activeJoinedThreadsInternal$app_productionGoogleRelease.get(Long.valueOf(longValue2))) != null) {
this.acks.put(Long.valueOf(longValue2), new Ack((ThreadUtils.getThreadAckMessageTimestamp$default(ThreadUtils.INSTANCE, activeJoinedThread.getChannel(), guildsJoinedAtInternal$app_productionBetaRelease.get(Long.valueOf(activeJoinedThread.getChannel().e())), Long.valueOf(activeJoinedThread.getJoinTimestamp().f()), null, 4, null) - 1420070400000L) << 22, false, false)); this.acks.put(Long.valueOf(longValue2), new Ack((ThreadUtils.getThreadAckMessageTimestamp$default(ThreadUtils.INSTANCE, activeJoinedThread.getChannel(), guildsJoinedAtInternal$app_productionGoogleRelease.get(Long.valueOf(activeJoinedThread.getChannel().e())), Long.valueOf(activeJoinedThread.getJoinTimestamp().f()), null, 4, null) - 1420070400000L) << 22, false, false));
markChanged(); markChanged();
} }
} }
@ -610,7 +610,7 @@ public final class StoreMessageAck extends StoreV2 {
@StoreThread @StoreThread
public final void handleMessageCreate(ModelMessage modelMessage) { public final void handleMessageCreate(ModelMessage modelMessage) {
m.checkNotNullParameter(modelMessage, "message"); m.checkNotNullParameter(modelMessage, "message");
if (modelMessage.getAuthor().i() == this.stream.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId()) { if (modelMessage.getAuthor().i() == this.stream.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId()) {
updateAcks(modelMessage.getChannelId(), new Ack(modelMessage.getId(), false, false)); updateAcks(modelMessage.getChannelId(), new Ack(modelMessage.getId(), false, false));
} }
} }
@ -636,7 +636,7 @@ public final class StoreMessageAck extends StoreV2 {
} }
public final void markUnread(long j, long j2) { public final void markUnread(long j, long j2) {
Observable j3 = Observable.j(this.stream.getMessages$app_productionBetaRelease().observeMessagesForChannel(j).y(StoreMessageAck$markUnread$1.INSTANCE), observeThreadState(j), StoreMessageAck$markUnread$2.INSTANCE); Observable j3 = Observable.j(this.stream.getMessages$app_productionGoogleRelease().observeMessagesForChannel(j).y(StoreMessageAck$markUnread$1.INSTANCE), observeThreadState(j), StoreMessageAck$markUnread$2.INSTANCE);
m.checkNotNullExpressionValue(j3, "Observable\n .comb…lMessages, threadState) }"); m.checkNotNullExpressionValue(j3, "Observable\n .comb…lMessages, threadState) }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout(j3, 10, false), StoreMessageAck.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessageAck$markUnread$3(this, j2, j), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.takeSingleUntilTimeout(j3, 10, false), StoreMessageAck.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessageAck$markUnread$3(this, j2, j), 62, (Object) null);
} }

View file

@ -373,7 +373,7 @@ public final class StoreMessageReactions extends StoreV2 {
@StoreThread @StoreThread
public final void handleReactionAdd(MessageReactionUpdate messageReactionUpdate) { public final void handleReactionAdd(MessageReactionUpdate messageReactionUpdate) {
m.checkNotNullParameter(messageReactionUpdate, "update"); m.checkNotNullParameter(messageReactionUpdate, "update");
User user = this.userStore.getUsersInternal$app_productionBetaRelease().get(Long.valueOf(messageReactionUpdate.d())); User user = this.userStore.getUsersInternal$app_productionGoogleRelease().get(Long.valueOf(messageReactionUpdate.d()));
if (user != null) { if (user != null) {
EmojiResults ensureReactionResults = ensureReactionResults(messageReactionUpdate.c(), messageReactionUpdate.b().c()); EmojiResults ensureReactionResults = ensureReactionResults(messageReactionUpdate.c(), messageReactionUpdate.b().c());
if (!(ensureReactionResults instanceof EmojiResults.Users)) { if (!(ensureReactionResults instanceof EmojiResults.Users)) {

View file

@ -52,7 +52,7 @@ public final class StoreMessages$sendMessage$request$1 extends o implements Func
} }
MessageResult messageResult = this.$result; MessageResult messageResult = this.$result;
if (messageResult instanceof MessageResult.Success) { if (messageResult instanceof MessageResult.Success) {
StoreMessages.access$getStream$p(this.this$0.this$0.this$0).getSlowMode$app_productionBetaRelease().onMessageSent(((MessageResult.Success) this.$result).getMessage().getChannelId()); StoreMessages.access$getStream$p(this.this$0.this$0.this$0).getSlowMode$app_productionGoogleRelease().onMessageSent(((MessageResult.Success) this.$result).getMessage().getChannelId());
this.this$0.this$0.this$0.handleMessageCreate(m.listOf(((MessageResult.Success) this.$result).getMessage())); this.this$0.this$0.this$0.handleMessageCreate(m.listOf(((MessageResult.Success) this.$result).getMessage()));
ModelMessage modelMessage = this.this$0.this$0.$localMessage; ModelMessage modelMessage = this.this$0.this$0.$localMessage;
d0.z.d.m.checkNotNullExpressionValue(modelMessage, "localMessage"); d0.z.d.m.checkNotNullExpressionValue(modelMessage, "localMessage");
@ -74,10 +74,10 @@ public final class StoreMessages$sendMessage$request$1 extends o implements Func
ModelMessage modelMessage3 = storeMessages$sendMessage$request$12.$localMessage; ModelMessage modelMessage3 = storeMessages$sendMessage$request$12.$localMessage;
d0.z.d.m.checkNotNullExpressionValue(modelMessage3, "localMessage"); d0.z.d.m.checkNotNullExpressionValue(modelMessage3, "localMessage");
StoreMessages.access$handleSendMessageFailure(storeMessages2, modelMessage3); StoreMessages.access$handleSendMessageFailure(storeMessages2, modelMessage3);
StoreSlowMode slowMode$app_productionBetaRelease = StoreMessages.access$getStream$p(this.this$0.this$0.this$0).getSlowMode$app_productionBetaRelease(); StoreSlowMode slowMode$app_productionGoogleRelease = StoreMessages.access$getStream$p(this.this$0.this$0.this$0).getSlowMode$app_productionGoogleRelease();
ModelMessage modelMessage4 = this.this$0.this$0.$localMessage; ModelMessage modelMessage4 = this.this$0.this$0.$localMessage;
d0.z.d.m.checkNotNullExpressionValue(modelMessage4, "localMessage"); d0.z.d.m.checkNotNullExpressionValue(modelMessage4, "localMessage");
slowMode$app_productionBetaRelease.onCooldown(modelMessage4.getChannelId(), ((MessageResult.Slowmode) this.$result).getCooldownMs()); slowMode$app_productionGoogleRelease.onCooldown(modelMessage4.getChannelId(), ((MessageResult.Slowmode) this.$result).getCooldownMs());
} else if (!(messageResult instanceof MessageResult.RateLimited)) { } else if (!(messageResult instanceof MessageResult.RateLimited)) {
if (messageResult instanceof MessageResult.UserCancelled) { if (messageResult instanceof MessageResult.UserCancelled) {
StoreMessages$sendMessage$request$1 storeMessages$sendMessage$request$13 = this.this$0.this$0; StoreMessages$sendMessage$request$1 storeMessages$sendMessage$request$13 = this.this$0.this$0;
@ -153,13 +153,13 @@ public final class StoreMessages$sendMessage$request$1 extends o implements Func
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
StoreMessageUploads messageUploads$app_productionBetaRelease = StoreMessages.access$getStream$p(this.this$0.this$0.this$0).getMessageUploads$app_productionBetaRelease(); StoreMessageUploads messageUploads$app_productionGoogleRelease = StoreMessages.access$getStream$p(this.this$0.this$0.this$0).getMessageUploads$app_productionGoogleRelease();
ModelMessage modelMessage = this.this$0.this$0.$localMessage; ModelMessage modelMessage = this.this$0.this$0.$localMessage;
d0.z.d.m.checkNotNullExpressionValue(modelMessage, "localMessage"); d0.z.d.m.checkNotNullExpressionValue(modelMessage, "localMessage");
String nonce = modelMessage.getNonce(); String nonce = modelMessage.getNonce();
d0.z.d.m.checkNotNull(nonce); d0.z.d.m.checkNotNull(nonce);
d0.z.d.m.checkNotNullExpressionValue(nonce, "localMessage.nonce!!"); d0.z.d.m.checkNotNullExpressionValue(nonce, "localMessage.nonce!!");
messageUploads$app_productionBetaRelease.onPreprocessing(nonce, this.$numFiles, this.$displayName, this.$mimeType); messageUploads$app_productionGoogleRelease.onPreprocessing(nonce, this.$numFiles, this.$displayName, this.$mimeType);
} }
} }
@ -204,13 +204,13 @@ public final class StoreMessages$sendMessage$request$1 extends o implements Func
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
StoreMessageUploads messageUploads$app_productionBetaRelease = StoreMessages.access$getStream$p(this.this$0.this$0.this$0).getMessageUploads$app_productionBetaRelease(); StoreMessageUploads messageUploads$app_productionGoogleRelease = StoreMessages.access$getStream$p(this.this$0.this$0.this$0).getMessageUploads$app_productionGoogleRelease();
ModelMessage modelMessage = this.this$0.this$0.$localMessage; ModelMessage modelMessage = this.this$0.this$0.$localMessage;
d0.z.d.m.checkNotNullExpressionValue(modelMessage, "localMessage"); d0.z.d.m.checkNotNullExpressionValue(modelMessage, "localMessage");
String nonce = modelMessage.getNonce(); String nonce = modelMessage.getNonce();
d0.z.d.m.checkNotNull(nonce); d0.z.d.m.checkNotNull(nonce);
d0.z.d.m.checkNotNullExpressionValue(nonce, "localMessage.nonce!!"); d0.z.d.m.checkNotNullExpressionValue(nonce, "localMessage.nonce!!");
messageUploads$app_productionBetaRelease.bindUpload(nonce, this.$uploads); messageUploads$app_productionGoogleRelease.bindUpload(nonce, this.$uploads);
} }
} }

View file

@ -169,7 +169,7 @@ public final class StoreMessages extends Store {
@StoreThread @StoreThread
private final void handleInteractionStateUpdate(InteractionStateUpdate interactionStateUpdate, boolean z2, boolean z3) { private final void handleInteractionStateUpdate(InteractionStateUpdate interactionStateUpdate, boolean z2, boolean z3) {
ModelMessage message; ModelMessage message;
ApplicationCommandLocalSendData applicationCommandLocalSendData = this.stream.getApplicationInteractions$app_productionBetaRelease().getApplicationCommandLocalSendDataSet$app_productionBetaRelease().get(interactionStateUpdate.b()); ApplicationCommandLocalSendData applicationCommandLocalSendData = this.stream.getApplicationInteractions$app_productionGoogleRelease().getApplicationCommandLocalSendDataSet$app_productionGoogleRelease().get(interactionStateUpdate.b());
if (applicationCommandLocalSendData != null && (message = this.localMessagesHolder.getMessage(applicationCommandLocalSendData.getChannelId(), applicationCommandLocalSendData.getNonceString())) != null) { if (applicationCommandLocalSendData != null && (message = this.localMessagesHolder.getMessage(applicationCommandLocalSendData.getChannelId(), applicationCommandLocalSendData.getNonceString())) != null) {
ModelMessage createLocalApplicationCommandMessage = ModelMessage.createLocalApplicationCommandMessage(message, interactionStateUpdate.a(), z2, z3, this.clock); ModelMessage createLocalApplicationCommandMessage = ModelMessage.createLocalApplicationCommandMessage(message, interactionStateUpdate.a(), z2, z3, this.clock);
StoreLocalMessagesHolder storeLocalMessagesHolder = this.localMessagesHolder; StoreLocalMessagesHolder storeLocalMessagesHolder = this.localMessagesHolder;

View file

@ -40,7 +40,7 @@ public final class StoreMessagesLoader$handleLoadedMessages$1 extends o implemen
break; break;
} }
obj = it.next(); obj = it.next();
if (((ModelMessage) obj).getAuthor().i() == StoreMessagesLoader.access$getStream$p(this.this$0).getUsers$app_productionBetaRelease().getMe().getId()) { if (((ModelMessage) obj).getAuthor().i() == StoreMessagesLoader.access$getStream$p(this.this$0).getUsers$app_productionGoogleRelease().getMe().getId()) {
z2 = true; z2 = true;
continue; continue;
} else { } else {

View file

@ -16,6 +16,6 @@ public final class StoreMessagesLoader$jumpToMessage$4<T, R> implements b<Long,
} }
public final Observable<? extends ModelMessage> call(Long l) { public final Observable<? extends ModelMessage> call(Long l) {
return StoreMessagesLoader.access$getStream$p(this.this$0).getMessages$app_productionBetaRelease().observeMessagesForChannel(this.$channelId, this.$messageId); return StoreMessagesLoader.access$getStream$p(this.this$0).getMessages$app_productionGoogleRelease().observeMessagesForChannel(this.$channelId, this.$messageId);
} }
} }

View file

@ -20,7 +20,7 @@ public final class StoreMessagesLoader$jumpToMessage$6<T, R> implements b<Boolea
public final Observable<? extends Channel> call(Boolean bool) { public final Observable<? extends Channel> call(Boolean bool) {
m.checkNotNullExpressionValue(bool, "isConnected"); m.checkNotNullExpressionValue(bool, "isConnected");
int i = bool.booleanValue() ? 1 : 3; int i = bool.booleanValue() ? 1 : 3;
Observable<R> G = StoreMessagesLoader.access$getStream$p(this.this$0).getChannels$app_productionBetaRelease().observeChannel(this.$channelId).y(ObservableExtensionsKt$filterNull$1.INSTANCE).G(ObservableExtensionsKt$filterNull$2.INSTANCE); Observable<R> G = StoreMessagesLoader.access$getStream$p(this.this$0).getChannels$app_productionGoogleRelease().observeChannel(this.$channelId).y(ObservableExtensionsKt$filterNull$1.INSTANCE).G(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(G, "filter { it != null }.map { it!! }"); m.checkNotNullExpressionValue(G, "filter { it != null }.map { it!! }");
return ObservableExtensionsKt.takeSingleUntilTimeout$default(G, 1000 * ((long) i), false, 2, null); return ObservableExtensionsKt.takeSingleUntilTimeout$default(G, 1000 * ((long) i), false, 2, null);
} }

View file

@ -628,7 +628,7 @@ public final class StoreMessagesLoader extends Store {
} }
if (interactionState.getChannelId() == longValue && (z6 || z5)) { if (interactionState.getChannelId() == longValue && (z6 || z5)) {
channelLoadedStateUpdate(longValue, StoreMessagesLoader$tryLoadMessages$5$1.INSTANCE); channelLoadedStateUpdate(longValue, StoreMessagesLoader$tryLoadMessages$5$1.INSTANCE);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(ObservableExtensionsKt.takeSingleUntilTimeout$default(this.stream.getMessages$app_productionBetaRelease().observeMessagesForChannel(longValue), 0, false, 3, null)), interactionState.getClass(), (Context) null, (Function1) null, new StoreMessagesLoader$tryLoadMessages$$inlined$apply$lambda$2(this, channelLoadedState, longValue, storeMessagesLoader$tryLoadMessages$4), (Function0) null, (Function0) null, new StoreMessagesLoader$tryLoadMessages$$inlined$apply$lambda$1(z6, z5, this, channelLoadedState, longValue, storeMessagesLoader$tryLoadMessages$4), 54, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationBuffered(ObservableExtensionsKt.takeSingleUntilTimeout$default(this.stream.getMessages$app_productionGoogleRelease().observeMessagesForChannel(longValue), 0, false, 3, null)), interactionState.getClass(), (Context) null, (Function1) null, new StoreMessagesLoader$tryLoadMessages$$inlined$apply$lambda$2(this, channelLoadedState, longValue, storeMessagesLoader$tryLoadMessages$4), (Function0) null, (Function0) null, new StoreMessagesLoader$tryLoadMessages$$inlined$apply$lambda$1(z6, z5, this, channelLoadedState, longValue, storeMessagesLoader$tryLoadMessages$4), 54, (Object) null);
} }
} }
} }
@ -704,18 +704,18 @@ public final class StoreMessagesLoader extends Store {
public void init(Context context) { public void init(Context context) {
m.checkNotNullParameter(context, "context"); m.checkNotNullParameter(context, "context");
super.init(context); super.init(context);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(this.stream.getChat$app_productionBetaRelease().observeInteractionState()), StoreMessagesLoader.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessagesLoader$init$1(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(this.stream.getChat$app_productionGoogleRelease().observeInteractionState()), StoreMessagesLoader.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessagesLoader$init$1(this), 62, (Object) null);
ObservableExtensionsKt.appSubscribe$default(this.stream.getMessages$app_productionBetaRelease().getAllDetached(), StoreMessagesLoader.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessagesLoader$init$2(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(this.stream.getMessages$app_productionGoogleRelease().getAllDetached(), StoreMessagesLoader.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessagesLoader$init$2(this), 62, (Object) null);
} }
public final synchronized void jumpToMessage(long j, long j2) { public final synchronized void jumpToMessage(long j, long j2) {
if (j2 > 0) { if (j2 > 0) {
StoreMessagesLoader$jumpToMessage$1 storeMessagesLoader$jumpToMessage$1 = new StoreMessagesLoader$jumpToMessage$1(this, j, j2); StoreMessagesLoader$jumpToMessage$1 storeMessagesLoader$jumpToMessage$1 = new StoreMessagesLoader$jumpToMessage$1(this, j, j2);
StoreMessagesLoader$jumpToMessage$2 storeMessagesLoader$jumpToMessage$2 = new StoreMessagesLoader$jumpToMessage$2(this, j); StoreMessagesLoader$jumpToMessage$2 storeMessagesLoader$jumpToMessage$2 = new StoreMessagesLoader$jumpToMessage$2(this, j);
Observable Z = this.stream.getChannelsSelected$app_productionBetaRelease().observeId().k(q.c(new StoreMessagesLoader$jumpToMessage$3(j), -1L, 1000, TimeUnit.MILLISECONDS)).Z(new StoreMessagesLoader$jumpToMessage$4(this, j, j2)); Observable Z = this.stream.getChannelsSelected$app_productionGoogleRelease().observeId().k(q.c(new StoreMessagesLoader$jumpToMessage$3(j), -1L, 1000, TimeUnit.MILLISECONDS)).Z(new StoreMessagesLoader$jumpToMessage$4(this, j, j2));
m.checkNotNullExpressionValue(Z, "stream\n .channels…lId, messageId)\n }"); m.checkNotNullExpressionValue(Z, "stream\n .channels…lId, messageId)\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(ObservableExtensionsKt.takeSingleUntilTimeout$default(Z, 0, false, 3, null)), getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessagesLoader$jumpToMessage$5(this, storeMessagesLoader$jumpToMessage$1), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(ObservableExtensionsKt.takeSingleUntilTimeout$default(Z, 0, false, 3, null)), getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreMessagesLoader$jumpToMessage$5(this, storeMessagesLoader$jumpToMessage$1), 62, (Object) null);
Observable A = StoreConnectionOpen.observeConnectionOpen$default(this.stream.getConnectionOpen$app_productionBetaRelease(), false, 1, null).a0(1).A(new StoreMessagesLoader$jumpToMessage$6(this, j)); Observable A = StoreConnectionOpen.observeConnectionOpen$default(this.stream.getConnectionOpen$app_productionGoogleRelease(), false, 1, null).a0(1).A(new StoreMessagesLoader$jumpToMessage$6(this, j));
m.checkNotNullExpressionValue(A, "stream\n .connecti…mes.ONE_SECOND)\n }"); m.checkNotNullExpressionValue(A, "stream\n .connecti…mes.ONE_SECOND)\n }");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(A), getClass(), (Context) null, (Function1) null, StoreMessagesLoader$jumpToMessage$7.INSTANCE, (Function0) null, (Function0) null, new StoreMessagesLoader$jumpToMessage$8(storeMessagesLoader$jumpToMessage$2), 54, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(A), getClass(), (Context) null, (Function1) null, StoreMessagesLoader$jumpToMessage$7.INSTANCE, (Function0) null, (Function0) null, new StoreMessagesLoader$jumpToMessage$8(storeMessagesLoader$jumpToMessage$2), 54, (Object) null);
} }

View file

@ -49,7 +49,7 @@ public final class StoreNavigation$ActivityNavigationLifecycleCallbacks$guildTem
return false; return false;
} }
WidgetGuildClone.Companion.show(appActivity, guildTemplateCode, "Dynamic Link"); WidgetGuildClone.Companion.show(appActivity, guildTemplateCode, "Dynamic Link");
StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getNux$app_productionBetaRelease().updateNux(AnonymousClass1.INSTANCE); StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getNux$app_productionGoogleRelease().updateNux(AnonymousClass1.INSTANCE);
return true; return true;
} }
} }

View file

@ -55,16 +55,16 @@ public final class StoreNavigation$ActivityNavigationLifecycleCallbacks$inviteCo
return false; return false;
} }
boolean postRegisterWithInvite = modelGlobalNavigation.getNuxState().getPostRegisterWithInvite(); boolean postRegisterWithInvite = modelGlobalNavigation.getNuxState().getPostRegisterWithInvite();
Experiment userExperiment = StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getExperiments$app_productionBetaRelease().getUserExperiment("2021-04_contact_sync_android_main", true); Experiment userExperiment = StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getExperiments$app_productionGoogleRelease().getUserExperiment("2021-04_contact_sync_android_main", true);
boolean z2 = userExperiment != null && userExperiment.getBucket() == 1; boolean z2 = userExperiment != null && userExperiment.getBucket() == 1;
Experiment userExperiment2 = StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getExperiments$app_productionBetaRelease().getUserExperiment("2021-06_contact_sync_android_post_registration_with_invite", z2 && modelGlobalNavigation.getUserHasPhone() && postRegisterWithInvite); Experiment userExperiment2 = StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getExperiments$app_productionGoogleRelease().getUserExperiment("2021-06_contact_sync_android_post_registration_with_invite", z2 && modelGlobalNavigation.getUserHasPhone() && postRegisterWithInvite);
boolean z3 = postRegisterWithInvite && z2 && userExperiment2 != null && userExperiment2.getBucket() == 1 && modelGlobalNavigation.getUserHasPhone(); boolean z3 = postRegisterWithInvite && z2 && userExperiment2 != null && userExperiment2.getBucket() == 1 && modelGlobalNavigation.getUserHasPhone();
if (!postRegisterWithInvite || !z3 || modelGlobalNavigation.getNuxState().getContactSyncCompleted()) { if (!postRegisterWithInvite || !z3 || modelGlobalNavigation.getNuxState().getContactSyncCompleted()) {
if (appActivity.h(a0.getOrCreateKotlinClass(WidgetGuildInvite.class))) { if (appActivity.h(a0.getOrCreateKotlinClass(WidgetGuildInvite.class))) {
return false; return false;
} }
WidgetGuildInvite.Companion.launch(appActivity, inviteCode.getInviteCode(), inviteCode.getSource()); WidgetGuildInvite.Companion.launch(appActivity, inviteCode.getInviteCode(), inviteCode.getSource());
StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getNux$app_productionBetaRelease().updateNux(AnonymousClass1.INSTANCE); StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getNux$app_productionGoogleRelease().updateNux(AnonymousClass1.INSTANCE);
} else if (!appActivity.h(a0.getOrCreateKotlinClass(WidgetContactSync.class))) { } else if (!appActivity.h(a0.getOrCreateKotlinClass(WidgetContactSync.class))) {
ContactSyncAnalytics.Companion.trackStart(true, g0.mapOf(d0.o.to("location_page", "Onboarding"))); ContactSyncAnalytics.Companion.trackStart(true, g0.mapOf(d0.o.to("location_page", "Onboarding")));
WidgetContactSync.Companion.launch$default(WidgetContactSync.Companion, appActivity, ContactSyncMode.ONBOARDING, false, false, false, 28, null); WidgetContactSync.Companion.launch$default(WidgetContactSync.Companion, appActivity, ContactSyncMode.ONBOARDING, false, false, false, 28, null);

View file

@ -50,7 +50,7 @@ public final class StoreNavigation$ActivityNavigationLifecycleCallbacks$nuxState
public final boolean invoke(AppActivity appActivity, StoreNavigation.ActivityNavigationLifecycleCallbacks.ModelGlobalNavigation modelGlobalNavigation) { public final boolean invoke(AppActivity appActivity, StoreNavigation.ActivityNavigationLifecycleCallbacks.ModelGlobalNavigation modelGlobalNavigation) {
m.checkNotNullParameter(appActivity, "activity"); m.checkNotNullParameter(appActivity, "activity");
m.checkNotNullParameter(modelGlobalNavigation, "model"); m.checkNotNullParameter(modelGlobalNavigation, "model");
Experiment userExperiment = StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getExperiments$app_productionBetaRelease().getUserExperiment("2021-04_contact_sync_android_main", modelGlobalNavigation.getNuxState().getPostRegister()); Experiment userExperiment = StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getExperiments$app_productionGoogleRelease().getUserExperiment("2021-04_contact_sync_android_main", modelGlobalNavigation.getNuxState().getPostRegister());
boolean z2 = userExperiment != null && userExperiment.getBucket() == 1; boolean z2 = userExperiment != null && userExperiment.getBucket() == 1;
if (!modelGlobalNavigation.getNuxState().getPostRegister()) { if (!modelGlobalNavigation.getNuxState().getPostRegister()) {
return false; return false;
@ -58,7 +58,7 @@ public final class StoreNavigation$ActivityNavigationLifecycleCallbacks$nuxState
if (!z2 || modelGlobalNavigation.getNuxState().getContactSyncCompleted()) { if (!z2 || modelGlobalNavigation.getNuxState().getContactSyncCompleted()) {
if (!appActivity.h(a0.getOrCreateKotlinClass(WidgetGuildTemplates.class))) { if (!appActivity.h(a0.getOrCreateKotlinClass(WidgetGuildTemplates.class))) {
WidgetGuildTemplates.Companion.launch(appActivity, CreateGuildTrigger.NUF, true); WidgetGuildTemplates.Companion.launch(appActivity, CreateGuildTrigger.NUF, true);
StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getNux$app_productionBetaRelease().updateNux(AnonymousClass1.INSTANCE); StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getNux$app_productionGoogleRelease().updateNux(AnonymousClass1.INSTANCE);
} }
} else if (!appActivity.h(a0.getOrCreateKotlinClass(WidgetContactSync.class))) { } else if (!appActivity.h(a0.getOrCreateKotlinClass(WidgetContactSync.class))) {
ContactSyncAnalytics.Companion.trackStart(true, g0.mapOf(d0.o.to("location_page", "Onboarding"))); ContactSyncAnalytics.Companion.trackStart(true, g0.mapOf(d0.o.to("location_page", "Onboarding")));

View file

@ -33,10 +33,10 @@ public final class StoreNavigation$ActivityNavigationLifecycleCallbacks$oAuthSta
l lVar = l.g; l lVar = l.g;
if (!appActivity.g(l.f44c)) { if (!appActivity.g(l.f44c)) {
WidgetOauth2Authorize.Companion.launch(appActivity, oAuthUri); WidgetOauth2Authorize.Companion.launch(appActivity, oAuthUri);
StoreAuthentication authentication$app_productionBetaRelease = StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getAuthentication$app_productionBetaRelease(); StoreAuthentication authentication$app_productionGoogleRelease = StoreNavigation.ActivityNavigationLifecycleCallbacks.access$getStream$p(this.this$0).getAuthentication$app_productionGoogleRelease();
Uri uri = Uri.EMPTY; Uri uri = Uri.EMPTY;
m.checkNotNullExpressionValue(uri, "Uri.EMPTY"); m.checkNotNullExpressionValue(uri, "Uri.EMPTY");
authentication$app_productionBetaRelease.setOAuthUriSubject(uri); authentication$app_productionGoogleRelease.setOAuthUriSubject(uri);
return true; return true;
} }
} }

View file

@ -333,22 +333,22 @@ public final class StoreNavigation {
} }
private final Observable<ModelGlobalNavigation> getGlobalNavigationData() { private final Observable<ModelGlobalNavigation> getGlobalNavigationData() {
Observable<StoreNux.NuxState> nuxState = this.stream.getNux$app_productionBetaRelease().getNuxState(); Observable<StoreNux.NuxState> nuxState = this.stream.getNux$app_productionGoogleRelease().getNuxState();
Observable<Boolean> isInitializedObservable = StoreStream.Companion.isInitializedObservable(); Observable<Boolean> isInitializedObservable = StoreStream.Companion.isInitializedObservable();
Observable<String> authedToken$app_productionBetaRelease = this.stream.getAuthentication$app_productionBetaRelease().getAuthedToken$app_productionBetaRelease(); Observable<String> authedToken$app_productionGoogleRelease = this.stream.getAuthentication$app_productionGoogleRelease().getAuthedToken$app_productionGoogleRelease();
Observable<Boolean> observeInitializedForAuthedUser = this.stream.getChannelsSelected$app_productionBetaRelease().observeInitializedForAuthedUser(); Observable<Boolean> observeInitializedForAuthedUser = this.stream.getChannelsSelected$app_productionGoogleRelease().observeInitializedForAuthedUser();
Observable<Boolean> observeHasIncoming = this.stream.getCallsIncoming$app_productionBetaRelease().observeHasIncoming(); Observable<Boolean> observeHasIncoming = this.stream.getCallsIncoming$app_productionGoogleRelease().observeHasIncoming();
Observable<RequiredAction> observeUserRequiredAction = this.stream.getUserRequiredAction$app_productionBetaRelease().observeUserRequiredAction(); Observable<RequiredAction> observeUserRequiredAction = this.stream.getUserRequiredAction$app_productionGoogleRelease().observeUserRequiredAction();
Observable<Boolean> clientOutdated = this.stream.getClientVersion$app_productionBetaRelease().getClientOutdated(); Observable<Boolean> clientOutdated = this.stream.getClientVersion$app_productionGoogleRelease().getClientOutdated();
Observable<StoreInviteSettings.InviteCode> inviteCode = this.stream.getGuildInvite$app_productionBetaRelease().getInviteCode(); Observable<StoreInviteSettings.InviteCode> inviteCode = this.stream.getGuildInvite$app_productionGoogleRelease().getInviteCode();
Observable<String> observeDynamicLinkGuildTemplateCode = this.stream.getGuildTemplates$app_productionBetaRelease().observeDynamicLinkGuildTemplateCode(); Observable<String> observeDynamicLinkGuildTemplateCode = this.stream.getGuildTemplates$app_productionGoogleRelease().observeDynamicLinkGuildTemplateCode();
Observable<StoreNotices.Notice> notices = this.stream.getNotices$app_productionBetaRelease().getNotices(); Observable<StoreNotices.Notice> notices = this.stream.getNotices$app_productionGoogleRelease().getNotices();
Observable<AgeGate> shouldShowAgeGate = this.stream.getAuthentication$app_productionBetaRelease().getShouldShowAgeGate(); Observable<AgeGate> shouldShowAgeGate = this.stream.getAuthentication$app_productionGoogleRelease().getShouldShowAgeGate();
Observable<Uri> oAuthUriObservable = this.stream.getAuthentication$app_productionBetaRelease().getOAuthUriObservable(); Observable<Uri> oAuthUriObservable = this.stream.getAuthentication$app_productionGoogleRelease().getOAuthUriObservable();
Observable<NavigationTab> observeSelectedTab = this.stream.getTabsNavigation$app_productionBetaRelease().observeSelectedTab(); Observable<NavigationTab> observeSelectedTab = this.stream.getTabsNavigation$app_productionGoogleRelease().observeSelectedTab();
Observable<R> G = this.stream.getUsers$app_productionBetaRelease().observeMe(true).G(StoreNavigation$ActivityNavigationLifecycleCallbacks$getGlobalNavigationData$1.INSTANCE); Observable<R> G = this.stream.getUsers$app_productionGoogleRelease().observeMe(true).G(StoreNavigation$ActivityNavigationLifecycleCallbacks$getGlobalNavigationData$1.INSTANCE);
m.checkNotNullExpressionValue(G, "stream\n .us….hasPhone\n }"); m.checkNotNullExpressionValue(G, "stream\n .us….hasPhone\n }");
Observable<ModelGlobalNavigation> s2 = ObservableExtensionsKt.computationLatest(ObservableExtensionsKt.leadingEdgeThrottle(ObservableCombineLatestOverloadsKt.combineLatest(nuxState, isInitializedObservable, authedToken$app_productionBetaRelease, observeInitializedForAuthedUser, observeHasIncoming, observeUserRequiredAction, clientOutdated, inviteCode, observeDynamicLinkGuildTemplateCode, notices, shouldShowAgeGate, oAuthUriObservable, observeSelectedTab, G, StoreNavigation$ActivityNavigationLifecycleCallbacks$getGlobalNavigationData$2.INSTANCE), 500, TimeUnit.MILLISECONDS)).s(); Observable<ModelGlobalNavigation> s2 = ObservableExtensionsKt.computationLatest(ObservableExtensionsKt.leadingEdgeThrottle(ObservableCombineLatestOverloadsKt.combineLatest(nuxState, isInitializedObservable, authedToken$app_productionGoogleRelease, observeInitializedForAuthedUser, observeHasIncoming, observeUserRequiredAction, clientOutdated, inviteCode, observeDynamicLinkGuildTemplateCode, notices, shouldShowAgeGate, oAuthUriObservable, observeSelectedTab, G, StoreNavigation$ActivityNavigationLifecycleCallbacks$getGlobalNavigationData$2.INSTANCE), 500, TimeUnit.MILLISECONDS)).s();
m.checkNotNullExpressionValue(s2, "combineLatest(\n … .distinctUntilChanged()"); m.checkNotNullExpressionValue(s2, "combineLatest(\n … .distinctUntilChanged()");
return s2; return s2;
} }

View file

@ -28,6 +28,6 @@ public final class StoreNotifications$configureNotificationClient$3 extends o im
NotificationClient notificationClient = NotificationClient.INSTANCE; NotificationClient notificationClient = NotificationClient.INSTANCE;
m.checkNotNullExpressionValue(component1, "settings"); m.checkNotNullExpressionValue(component1, "settings");
m.checkNotNullExpressionValue(component2, "isBackgrounded"); m.checkNotNullExpressionValue(component2, "isBackgrounded");
notificationClient.updateSettings$app_productionBetaRelease(component1, component2.booleanValue()); notificationClient.updateSettings$app_productionGoogleRelease(component1, component2.booleanValue());
} }
} }

View file

@ -88,7 +88,7 @@ public final class StoreNotifications extends Store {
NotificationClient.INSTANCE.setRegistrationIdReceived(new StoreNotifications$configureNotificationClient$1(this)); NotificationClient.INSTANCE.setRegistrationIdReceived(new StoreNotifications$configureNotificationClient$1(this));
Observable<NotificationClient.SettingsV2> settings = getSettings(); Observable<NotificationClient.SettingsV2> settings = getSettings();
StoreStream.Companion companion = StoreStream.Companion; StoreStream.Companion companion = StoreStream.Companion;
Observable j = Observable.j(Observable.h(settings, companion.getAuthentication().getAuthedToken$app_productionBetaRelease(), companion.getUserSettingsSystem().observeSettings(false), ObservableExtensionsKt.leadingEdgeThrottle(companion.getPermissions().observePermissionsForAllChannels(), 1, TimeUnit.SECONDS).G(StoreNotifications$configureNotificationClient$completedSettings$1.INSTANCE), StoreNotifications$configureNotificationClient$completedSettings$2.INSTANCE).s(), d.d.a(), StoreNotifications$configureNotificationClient$2.INSTANCE); Observable j = Observable.j(Observable.h(settings, companion.getAuthentication().getAuthedToken$app_productionGoogleRelease(), companion.getUserSettingsSystem().observeSettings(false), ObservableExtensionsKt.leadingEdgeThrottle(companion.getPermissions().observePermissionsForAllChannels(), 1, TimeUnit.SECONDS).G(StoreNotifications$configureNotificationClient$completedSettings$1.INSTANCE), StoreNotifications$configureNotificationClient$completedSettings$2.INSTANCE).s(), d.d.a(), StoreNotifications$configureNotificationClient$2.INSTANCE);
m.checkNotNullExpressionValue(j, "Observable\n .comb… isBackgrounded\n }"); m.checkNotNullExpressionValue(j, "Observable\n .comb… isBackgrounded\n }");
Observable s2 = ObservableExtensionsKt.computationBuffered(j).s(); Observable s2 = ObservableExtensionsKt.computationBuffered(j).s();
m.checkNotNullExpressionValue(s2, "Observable\n .comb… .distinctUntilChanged()"); m.checkNotNullExpressionValue(s2, "Observable\n .comb… .distinctUntilChanged()");
@ -155,29 +155,29 @@ public final class StoreNotifications extends Store {
public final void handleMessageCreate(ModelMessage modelMessage) { public final void handleMessageCreate(ModelMessage modelMessage) {
Channel channel; Channel channel;
m.checkNotNullParameter(modelMessage, "message"); m.checkNotNullParameter(modelMessage, "message");
if (this.notificationSettings.get().isEnabledInApp() && this.stream.getPresences$app_productionBetaRelease().getLocalPresence$app_productionBetaRelease().getStatus() != ClientStatus.DND) { if (this.notificationSettings.get().isEnabledInApp() && this.stream.getPresences$app_productionGoogleRelease().getLocalPresence$app_productionGoogleRelease().getStatus() != ClientStatus.DND) {
Map<Long, Integer> relationships = this.stream.getUserRelationships$app_productionBetaRelease().getRelationships(); Map<Long, Integer> relationships = this.stream.getUserRelationships$app_productionGoogleRelease().getRelationships();
LinkedHashMap linkedHashMap = new LinkedHashMap(); LinkedHashMap linkedHashMap = new LinkedHashMap();
for (Map.Entry<Long, Integer> entry : relationships.entrySet()) { for (Map.Entry<Long, Integer> entry : relationships.entrySet()) {
if (entry.getValue().intValue() == 2) { if (entry.getValue().intValue() == 2) {
linkedHashMap.put(entry.getKey(), entry.getValue()); linkedHashMap.put(entry.getKey(), entry.getValue());
} }
} }
if (modelMessage.getChannelId() != this.stream.getChannelsSelected$app_productionBetaRelease().getId()) { if (modelMessage.getChannelId() != this.stream.getChannelsSelected$app_productionGoogleRelease().getId()) {
Map<Long, Map<Long, Channel>> channelsByGuildInternal$app_productionBetaRelease = this.stream.getChannels$app_productionBetaRelease().getChannelsByGuildInternal$app_productionBetaRelease(); Map<Long, Map<Long, Channel>> channelsByGuildInternal$app_productionGoogleRelease = this.stream.getChannels$app_productionGoogleRelease().getChannelsByGuildInternal$app_productionGoogleRelease();
long guildId = modelMessage.getGuildId(); long guildId = modelMessage.getGuildId();
if (guildId == null) { if (guildId == null) {
guildId = 0L; guildId = 0L;
} }
Map<Long, Channel> map = channelsByGuildInternal$app_productionBetaRelease.get(guildId); Map<Long, Channel> map = channelsByGuildInternal$app_productionGoogleRelease.get(guildId);
Channel channel2 = this.stream.getChannels$app_productionBetaRelease().getThreadsByIdInternal$app_productionBetaRelease().get(Long.valueOf(modelMessage.getChannelId())); Channel channel2 = this.stream.getChannels$app_productionGoogleRelease().getThreadsByIdInternal$app_productionGoogleRelease().get(Long.valueOf(modelMessage.getChannelId()));
if (channel2 == null) { if (channel2 == null) {
if (map != null) { if (map != null) {
channel2 = map.get(Long.valueOf(modelMessage.getChannelId())); channel2 = map.get(Long.valueOf(modelMessage.getChannelId()));
} else { } else {
channel = null; channel = null;
if (channel == null) { if (channel == null) {
if (NotificationTextUtils.INSTANCE.shouldNotifyInAppPopup(this.stream.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease(), modelMessage, channel, linkedHashMap, map != null ? map.get(Long.valueOf(channel.q())) : null, (Guild) a.c(channel, this.stream.getGuilds$app_productionBetaRelease().getGuildsInternal$app_productionBetaRelease()), this.stream.getGuilds$app_productionBetaRelease().getGuildMembersComputedInternal$app_productionBetaRelease(), this.stream.getGuildSettings$app_productionBetaRelease().getGuildSettingsInternal$app_productionBetaRelease(), this.stream.getThreadsJoined$app_productionBetaRelease().getAllJoinedThreadsInternal$app_productionBetaRelease())) { if (NotificationTextUtils.INSTANCE.shouldNotifyInAppPopup(this.stream.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease(), modelMessage, channel, linkedHashMap, map != null ? map.get(Long.valueOf(channel.q())) : null, (Guild) a.c(channel, this.stream.getGuilds$app_productionGoogleRelease().getGuildsInternal$app_productionGoogleRelease()), this.stream.getGuilds$app_productionGoogleRelease().getGuildMembersComputedInternal$app_productionGoogleRelease(), this.stream.getGuildSettings$app_productionGoogleRelease().getGuildSettingsInternal$app_productionGoogleRelease(), this.stream.getThreadsJoined$app_productionGoogleRelease().getAllJoinedThreadsInternal$app_productionGoogleRelease())) {
displayPopup(modelMessage, channel); displayPopup(modelMessage, channel);
return; return;
} }

View file

@ -201,7 +201,7 @@ public final class StoreOutboundPromotions extends StoreV2 {
} }
@StoreThread @StoreThread
public final void handleConnectionOpen$app_productionBetaRelease(ModelPayload modelPayload) { public final void handleConnectionOpen$app_productionGoogleRelease(ModelPayload modelPayload) {
m.checkNotNullParameter(modelPayload, "readyPayload"); m.checkNotNullParameter(modelPayload, "readyPayload");
if (this.isEnabled) { if (this.isEnabled) {
UserUtils userUtils = UserUtils.INSTANCE; UserUtils userUtils = UserUtils.INSTANCE;

View file

@ -85,31 +85,31 @@ public final class StorePermissions extends StoreV2 {
@StoreThread @StoreThread
private final Map<Long, Long> computeChannelPermissions(long j, Iterable<Channel> iterable) { private final Map<Long, Long> computeChannelPermissions(long j, Iterable<Channel> iterable) {
Guild guild = this.storeGuilds.getGuildsInternal$app_productionBetaRelease().get(Long.valueOf(j)); Guild guild = this.storeGuilds.getGuildsInternal$app_productionGoogleRelease().get(Long.valueOf(j));
if (guild == null) { if (guild == null) {
return h0.emptyMap(); return h0.emptyMap();
} }
Map<Long, GuildMember> map = this.storeGuilds.getGuildMembersComputedInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildMember> map = this.storeGuilds.getGuildMembersComputedInternal$app_productionGoogleRelease().get(Long.valueOf(j));
Map<Long, GuildRole> map2 = this.storeGuilds.getGuildRolesInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildRole> map2 = this.storeGuilds.getGuildRolesInternal$app_productionGoogleRelease().get(Long.valueOf(j));
Map<Long, StageInstance> stageInstancesForGuildInternal = this.storeStageInstances.getStageInstancesForGuildInternal(j); Map<Long, StageInstance> stageInstancesForGuildInternal = this.storeStageInstances.getStageInstancesForGuildInternal(j);
LinkedHashMap linkedHashMap = new LinkedHashMap(f.coerceAtLeast(g0.mapCapacity(o.collectionSizeOrDefault(iterable, 10)), 16)); LinkedHashMap linkedHashMap = new LinkedHashMap(f.coerceAtLeast(g0.mapCapacity(o.collectionSizeOrDefault(iterable, 10)), 16));
for (Channel channel : iterable) { for (Channel channel : iterable) {
boolean hasJoinedInternal = this.storeThreadsJoined.hasJoinedInternal(channel.g()); boolean hasJoinedInternal = this.storeThreadsJoined.hasJoinedInternal(channel.g());
Pair pair = d0.o.to(Long.valueOf(channel.g()), Long.valueOf(AnimatableValueParser.r1(channel) ? 137438428927L : PermissionUtils.computePermissions(getMeId(), channel, this.storeChannels.getGuildChannelInternal$app_productionBetaRelease(channel.e(), channel.q()), guild.getOwnerId(), map != null ? map.get(Long.valueOf(getMeId())) : null, map2, stageInstancesForGuildInternal, hasJoinedInternal))); Pair pair = d0.o.to(Long.valueOf(channel.g()), Long.valueOf(AnimatableValueParser.r1(channel) ? 137438428927L : PermissionUtils.computePermissions(getMeId(), channel, this.storeChannels.getGuildChannelInternal$app_productionGoogleRelease(channel.e(), channel.q()), guild.getOwnerId(), map != null ? map.get(Long.valueOf(getMeId())) : null, map2, stageInstancesForGuildInternal, hasJoinedInternal)));
linkedHashMap.put(pair.getFirst(), pair.getSecond()); linkedHashMap.put(pair.getFirst(), pair.getSecond());
} }
return linkedHashMap; return linkedHashMap;
} }
private final long getMeId() { private final long getMeId() {
return this.storeUser.getMeInternal$app_productionBetaRelease().getId(); return this.storeUser.getMeInternal$app_productionGoogleRelease().getId();
} }
@StoreThread @StoreThread
private final void recomputeAllPermissions() { private final void recomputeAllPermissions() {
this.permissionsForGuilds.clear(); this.permissionsForGuilds.clear();
this.permissionsForChannels.clear(); this.permissionsForChannels.clear();
Collection<Channel> values = this.storeChannels.getThreadsByIdInternal$app_productionBetaRelease().values(); Collection<Channel> values = this.storeChannels.getThreadsByIdInternal$app_productionGoogleRelease().values();
LinkedHashMap linkedHashMap = new LinkedHashMap(); LinkedHashMap linkedHashMap = new LinkedHashMap();
for (Object obj : values) { for (Object obj : values) {
Long valueOf = Long.valueOf(((Channel) obj).e()); Long valueOf = Long.valueOf(((Channel) obj).e());
@ -120,7 +120,7 @@ public final class StorePermissions extends StoreV2 {
} }
((List) obj2).add(obj); ((List) obj2).add(obj);
} }
Set<Long> keySet = this.storeChannels.getChannelsByGuildInternal$app_productionBetaRelease().keySet(); Set<Long> keySet = this.storeChannels.getChannelsByGuildInternal$app_productionGoogleRelease().keySet();
ArrayList<Number> arrayList = new ArrayList(); ArrayList<Number> arrayList = new ArrayList();
for (Object obj3 : keySet) { for (Object obj3 : keySet) {
if (((Number) obj3).longValue() != 0) { if (((Number) obj3).longValue() != 0) {
@ -160,9 +160,9 @@ public final class StorePermissions extends StoreV2 {
private final void updateGuildPermissions(long j, Collection<Channel> collection) { private final void updateGuildPermissions(long j, Collection<Channel> collection) {
Map<Long, Channel> map; Map<Long, Channel> map;
Guild guild; Guild guild;
if (getMeId() != 0 && (map = this.storeChannels.getChannelsByGuildInternal$app_productionBetaRelease().get(Long.valueOf(j))) != null && (guild = this.storeGuilds.getGuildsInternal$app_productionBetaRelease().get(Long.valueOf(j))) != null) { if (getMeId() != 0 && (map = this.storeChannels.getChannelsByGuildInternal$app_productionGoogleRelease().get(Long.valueOf(j))) != null && (guild = this.storeGuilds.getGuildsInternal$app_productionGoogleRelease().get(Long.valueOf(j))) != null) {
Map<Long, GuildMember> map2 = this.storeGuilds.getGuildMembersComputedInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, GuildMember> map2 = this.storeGuilds.getGuildMembersComputedInternal$app_productionGoogleRelease().get(Long.valueOf(j));
long computeNonThreadPermissions = PermissionUtils.computeNonThreadPermissions(getMeId(), j, guild.getOwnerId(), map2 != null ? map2.get(Long.valueOf(getMeId())) : null, this.storeGuilds.getGuildRolesInternal$app_productionBetaRelease().get(Long.valueOf(j)), null); long computeNonThreadPermissions = PermissionUtils.computeNonThreadPermissions(getMeId(), j, guild.getOwnerId(), map2 != null ? map2.get(Long.valueOf(getMeId())) : null, this.storeGuilds.getGuildRolesInternal$app_productionGoogleRelease().get(Long.valueOf(j)), null);
Long l = this.permissionsForGuilds.get(Long.valueOf(j)); Long l = this.permissionsForGuilds.get(Long.valueOf(j));
if (l == null || l.longValue() != computeNonThreadPermissions) { if (l == null || l.longValue() != computeNonThreadPermissions) {
this.permissionsForGuilds.put(Long.valueOf(j), Long.valueOf(computeNonThreadPermissions)); this.permissionsForGuilds.put(Long.valueOf(j), Long.valueOf(computeNonThreadPermissions));
@ -185,7 +185,7 @@ public final class StorePermissions extends StoreV2 {
} }
@StoreThread @StoreThread
public final Map<Long, Long> getPermissionsByChannelInternal$app_productionBetaRelease(long j) { public final Map<Long, Long> getPermissionsByChannelInternal$app_productionGoogleRelease(long j) {
Map<Long, Long> map = this.permissionsForChannels.get(Long.valueOf(j)); Map<Long, Long> map = this.permissionsForChannels.get(Long.valueOf(j));
return map != null ? map : h0.emptyMap(); return map != null ? map : h0.emptyMap();
} }
@ -217,14 +217,14 @@ public final class StorePermissions extends StoreV2 {
@StoreThread @StoreThread
public final void handleGuildAdd(com.discord.api.guild.Guild guild) { public final void handleGuildAdd(com.discord.api.guild.Guild guild) {
m.checkNotNullParameter(guild, "guild"); m.checkNotNullParameter(guild, "guild");
updateGuildPermissions(guild.o(), this.storeChannels.getThreadsForGuildInternal$app_productionBetaRelease(guild.o())); updateGuildPermissions(guild.o(), this.storeChannels.getThreadsForGuildInternal$app_productionGoogleRelease(guild.o()));
} }
@StoreThread @StoreThread
public final void handleGuildMemberAdd(com.discord.api.guildmember.GuildMember guildMember) { public final void handleGuildMemberAdd(com.discord.api.guildmember.GuildMember guildMember) {
m.checkNotNullParameter(guildMember, "member"); m.checkNotNullParameter(guildMember, "member");
if (getMeId() != 0 && guildMember.j().i() == getMeId()) { if (getMeId() != 0 && guildMember.j().i() == getMeId()) {
updateGuildPermissions(guildMember.c(), this.storeChannels.getThreadsForGuildInternal$app_productionBetaRelease(guildMember.c())); updateGuildPermissions(guildMember.c(), this.storeChannels.getThreadsForGuildInternal$app_productionGoogleRelease(guildMember.c()));
} }
} }
@ -239,7 +239,7 @@ public final class StorePermissions extends StoreV2 {
@StoreThread @StoreThread
public final void handleGuildRolesChanged(long j) { public final void handleGuildRolesChanged(long j) {
updateGuildPermissions(j, this.storeChannels.getThreadsForGuildInternal$app_productionBetaRelease(j)); updateGuildPermissions(j, this.storeChannels.getThreadsForGuildInternal$app_productionGoogleRelease(j));
} }
@StoreThread @StoreThread
@ -256,7 +256,7 @@ public final class StorePermissions extends StoreV2 {
Channel channel = (Channel) u.firstOrNull((List<? extends Object>) arrayList); Channel channel = (Channel) u.firstOrNull((List<? extends Object>) arrayList);
Long valueOf = channel != null ? Long.valueOf(channel.e()) : null; Long valueOf = channel != null ? Long.valueOf(channel.e()) : null;
if (valueOf != null) { if (valueOf != null) {
updateGuildPermissions(valueOf.longValue(), this.storeChannels.getThreadsForGuildInternal$app_productionBetaRelease(valueOf.longValue())); updateGuildPermissions(valueOf.longValue(), this.storeChannels.getThreadsForGuildInternal$app_productionGoogleRelease(valueOf.longValue()));
} }
} }
} }
@ -278,7 +278,7 @@ public final class StorePermissions extends StoreV2 {
if (channel != null) { if (channel != null) {
l = Long.valueOf(channel.e()); l = Long.valueOf(channel.e());
if (l == null) { if (l == null) {
updateGuildPermissions(l.longValue(), this.storeChannels.getThreadsForGuildInternal$app_productionBetaRelease(l.longValue())); updateGuildPermissions(l.longValue(), this.storeChannels.getThreadsForGuildInternal$app_productionGoogleRelease(l.longValue()));
return; return;
} }
return; return;
@ -292,10 +292,10 @@ public final class StorePermissions extends StoreV2 {
@StoreThread @StoreThread
public final void handleStageInstanceChange(StageInstance stageInstance) { public final void handleStageInstanceChange(StageInstance stageInstance) {
Channel channelInternal$app_productionBetaRelease; Channel channelInternal$app_productionGoogleRelease;
m.checkNotNullParameter(stageInstance, "stageInstance"); m.checkNotNullParameter(stageInstance, "stageInstance");
if (getMeId() != 0 && (channelInternal$app_productionBetaRelease = this.storeChannels.getChannelInternal$app_productionBetaRelease(stageInstance.b(), stageInstance.a())) != null) { if (getMeId() != 0 && (channelInternal$app_productionGoogleRelease = this.storeChannels.getChannelInternal$app_productionGoogleRelease(stageInstance.b(), stageInstance.a())) != null) {
updateChannelPermissions(channelInternal$app_productionBetaRelease); updateChannelPermissions(channelInternal$app_productionGoogleRelease);
} }
} }
@ -303,26 +303,26 @@ public final class StorePermissions extends StoreV2 {
public final void handleThreadListSync(ModelThreadListSync modelThreadListSync) { public final void handleThreadListSync(ModelThreadListSync modelThreadListSync) {
m.checkNotNullParameter(modelThreadListSync, "threadListSync"); m.checkNotNullParameter(modelThreadListSync, "threadListSync");
if (getMeId() != 0) { if (getMeId() != 0) {
updateGuildPermissions(modelThreadListSync.getGuildId(), this.storeChannels.getThreadsForGuildInternal$app_productionBetaRelease(modelThreadListSync.getGuildId())); updateGuildPermissions(modelThreadListSync.getGuildId(), this.storeChannels.getThreadsForGuildInternal$app_productionGoogleRelease(modelThreadListSync.getGuildId()));
} }
} }
@StoreThread @StoreThread
public final void handleThreadMemberUpdate(ThreadMemberUpdate threadMemberUpdate) { public final void handleThreadMemberUpdate(ThreadMemberUpdate threadMemberUpdate) {
m.checkNotNullParameter(threadMemberUpdate, "threadMemberUpdate"); m.checkNotNullParameter(threadMemberUpdate, "threadMemberUpdate");
Channel guildChannelInternal$app_productionBetaRelease = this.storeChannels.getGuildChannelInternal$app_productionBetaRelease(threadMemberUpdate.b(), threadMemberUpdate.c()); Channel guildChannelInternal$app_productionGoogleRelease = this.storeChannels.getGuildChannelInternal$app_productionGoogleRelease(threadMemberUpdate.b(), threadMemberUpdate.c());
if (guildChannelInternal$app_productionBetaRelease != null) { if (guildChannelInternal$app_productionGoogleRelease != null) {
updateChannelPermissions(guildChannelInternal$app_productionBetaRelease); updateChannelPermissions(guildChannelInternal$app_productionGoogleRelease);
} }
} }
@StoreThread @StoreThread
public final void handleThreadMembersUpdate(ThreadMembersUpdate threadMembersUpdate) { public final void handleThreadMembersUpdate(ThreadMembersUpdate threadMembersUpdate) {
Channel guildChannelInternal$app_productionBetaRelease; Channel guildChannelInternal$app_productionGoogleRelease;
Boolean bool; Boolean bool;
boolean z2; boolean z2;
m.checkNotNullParameter(threadMembersUpdate, "threadMembersUpdate"); m.checkNotNullParameter(threadMembersUpdate, "threadMembersUpdate");
if (getMeId() != 0 && (guildChannelInternal$app_productionBetaRelease = this.storeChannels.getGuildChannelInternal$app_productionBetaRelease(threadMembersUpdate.b(), threadMembersUpdate.c())) != null) { if (getMeId() != 0 && (guildChannelInternal$app_productionGoogleRelease = this.storeChannels.getGuildChannelInternal$app_productionGoogleRelease(threadMembersUpdate.b(), threadMembersUpdate.c())) != null) {
List<ThreadMember> a = threadMembersUpdate.a(); List<ThreadMember> a = threadMembersUpdate.a();
Boolean bool2 = null; Boolean bool2 = null;
if (a != null) { if (a != null) {
@ -356,7 +356,7 @@ public final class StorePermissions extends StoreV2 {
} }
Boolean bool3 = Boolean.TRUE; Boolean bool3 = Boolean.TRUE;
if (m.areEqual(bool, bool3) || m.areEqual(bool2, bool3)) { if (m.areEqual(bool, bool3) || m.areEqual(bool2, bool3)) {
updateChannelPermissions(guildChannelInternal$app_productionBetaRelease); updateChannelPermissions(guildChannelInternal$app_productionGoogleRelease);
} }
} }
} }

View file

@ -78,8 +78,8 @@ public final class StoreReviewRequest extends Store {
z5 = s2.booleanValue(); z5 = s2.booleanValue();
} }
if (z4 && z5 && !this.hasUserAcceptedReviewRequest && this.requestedReviewRevision < 693) { if (z4 && z5 && !this.hasUserAcceptedReviewRequest && this.requestedReviewRevision < 693) {
if (this.clock.currentTimeMillis() > this.stream.getNotices$app_productionBetaRelease().getFirstUseTimestamp() + 864000000) { if (this.clock.currentTimeMillis() > this.stream.getNotices$app_productionGoogleRelease().getFirstUseTimestamp() + 864000000) {
this.stream.getNotices$app_productionBetaRelease().requestToShow(StoreNotices.Dialog.Type.buildPassiveNotice$default(StoreNotices.Dialog.Type.REQUEST_RATING_MODAL, 0, 31536000000L, 0, true, 5, null)); this.stream.getNotices$app_productionGoogleRelease().requestToShow(StoreNotices.Dialog.Type.buildPassiveNotice$default(StoreNotices.Dialog.Type.REQUEST_RATING_MODAL, 0, 31536000000L, 0, true, 5, null));
} }
} }
} }
@ -98,7 +98,7 @@ public final class StoreReviewRequest extends Store {
m.checkExpressionValueIsNotNull(edit, "editor"); m.checkExpressionValueIsNotNull(edit, "editor");
edit.putInt("CACHE_KEY_VIEWED_REVIEW_REQUEST_REVISION", 693); edit.putInt("CACHE_KEY_VIEWED_REVIEW_REQUEST_REVISION", 693);
edit.apply(); edit.apply();
this.stream.getNotices$app_productionBetaRelease().markSeen(StoreNotices.Dialog.Type.REQUEST_RATING_MODAL); this.stream.getNotices$app_productionGoogleRelease().markSeen(StoreNotices.Dialog.Type.REQUEST_RATING_MODAL);
AnalyticsTracker.INSTANCE.reviewRequestTriggered(); AnalyticsTracker.INSTANCE.reviewRequestTriggered();
} }

View file

@ -227,7 +227,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
/* JADX INFO: this call moved to the top of the method (can break code semantics) */ /* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ StoreRtcConnection(StoreStream storeStream, Dispatcher dispatcher, Clock clock, StoreRtcRegion storeRtcRegion, StoreAnalytics storeAnalytics, StoreVoiceStates storeVoiceStates, Logger logger, DebugPrintableCollection debugPrintableCollection, int i, DefaultConstructorMarker defaultConstructorMarker) { public /* synthetic */ StoreRtcConnection(StoreStream storeStream, Dispatcher dispatcher, Clock clock, StoreRtcRegion storeRtcRegion, StoreAnalytics storeAnalytics, StoreVoiceStates storeVoiceStates, Logger logger, DebugPrintableCollection debugPrintableCollection, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(storeStream, dispatcher, clock, storeRtcRegion, storeAnalytics, storeVoiceStates, (i & 64) != 0 ? AppLog.g : logger, (i & 128) != 0 ? SystemLogUtils.INSTANCE.getDebugPrintables$app_productionBetaRelease() : debugPrintableCollection); this(storeStream, dispatcher, clock, storeRtcRegion, storeAnalytics, storeVoiceStates, (i & 64) != 0 ? AppLog.g : logger, (i & 128) != 0 ? SystemLogUtils.INSTANCE.getDebugPrintables$app_productionGoogleRelease() : debugPrintableCollection);
} }
public static final /* synthetic */ Dispatcher access$getDispatcher$p(StoreRtcConnection storeRtcConnection) { public static final /* synthetic */ Dispatcher access$getDispatcher$p(StoreRtcConnection storeRtcConnection) {
@ -279,7 +279,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
} }
private final void applyVoiceConfiguration(RtcConnection rtcConnection, Long l) { private final void applyVoiceConfiguration(RtcConnection rtcConnection, Long l) {
StoreMediaSettings.VoiceConfiguration voiceConfigurationBlocking = this.stream.getMediaSettings$app_productionBetaRelease().getVoiceConfigurationBlocking(); StoreMediaSettings.VoiceConfiguration voiceConfigurationBlocking = this.stream.getMediaSettings$app_productionGoogleRelease().getVoiceConfigurationBlocking();
for (Map.Entry<Long, Float> entry : voiceConfigurationBlocking.getUserOutputVolumes().entrySet()) { for (Map.Entry<Long, Float> entry : voiceConfigurationBlocking.getUserOutputVolumes().entrySet()) {
long longValue = entry.getKey().longValue(); long longValue = entry.getKey().longValue();
float floatValue = entry.getValue().floatValue(); float floatValue = entry.getValue().floatValue();
@ -352,7 +352,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
@StoreThread @StoreThread
private final void createRtcConnection() { private final void createRtcConnection() {
Long l; Long l;
long id2 = this.stream.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId(); long id2 = this.stream.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId();
String str = this.sessionId; String str = this.sessionId;
Channel channel = this.selectedVoiceChannel; Channel channel = this.selectedVoiceChannel;
long j = 0; long j = 0;
@ -379,7 +379,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
j = l.longValue(); j = l.longValue();
} }
this.voicePropsTracker = new VoicePropsTracker(j, valueOf2.longValue(), id2, this.storeVoiceStates.get().get(Long.valueOf(j))); this.voicePropsTracker = new VoicePropsTracker(j, valueOf2.longValue(), id2, this.storeVoiceStates.get().get(Long.valueOf(j)));
Experiment userExperiment = this.stream.getExperiments$app_productionBetaRelease().getUserExperiment("2021-03_android_media_sink_wants", false); Experiment userExperiment = this.stream.getExperiments$app_productionGoogleRelease().getUserExperiment("2021-03_android_media_sink_wants", false);
boolean z2 = userExperiment != null && userExperiment.getBucket() == 1; boolean z2 = userExperiment != null && userExperiment.getBucket() == 1;
RtcConnection rtcConnection3 = this.rtcConnection; RtcConnection rtcConnection3 = this.rtcConnection;
if (rtcConnection3 != null) { if (rtcConnection3 != null) {
@ -393,7 +393,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
if (networkMonitor == null) { if (networkMonitor == null) {
m.throwUninitializedPropertyAccessException("networkMonitor"); m.throwUninitializedPropertyAccessException("networkMonitor");
} }
RtcConnection rtcConnection4 = new RtcConnection(l, longValue, str, true, valueOf3, id2, mediaEngine, logger, ClockFactory.get(), null, networkMonitor, h0.toMutableMap(this.stream.getMediaSettings$app_productionBetaRelease().getMutedUsers()), null, null, z2, str3, null, 78336); RtcConnection rtcConnection4 = new RtcConnection(l, longValue, str, true, valueOf3, id2, mediaEngine, logger, ClockFactory.get(), null, networkMonitor, h0.toMutableMap(this.stream.getMediaSettings$app_productionGoogleRelease().getMutedUsers()), null, null, z2, str3, null, 78336);
rtcConnection4.c(this); rtcConnection4.c(this);
this.rtcConnection = rtcConnection4; this.rtcConnection = rtcConnection4;
updateMetadata(); updateMetadata();
@ -501,17 +501,17 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
@StoreThread @StoreThread
private final void logChannelJoin(Channel channel) { private final void logChannelJoin(Channel channel) {
String str; String str;
long id2 = this.stream.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId(); long id2 = this.stream.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId();
RtcConnection rtcConnection = this.rtcConnection; RtcConnection rtcConnection = this.rtcConnection;
if (rtcConnection != null && (str = rtcConnection.d) != null) { if (rtcConnection != null && (str = rtcConnection.d) != null) {
StageInstance stageInstanceForChannel = this.stream.getStageInstances$app_productionBetaRelease().getStageInstanceForChannel(channel.g()); StageInstance stageInstanceForChannel = this.stream.getStageInstances$app_productionGoogleRelease().getStageInstanceForChannel(channel.g());
Long valueOf = stageInstanceForChannel != null ? Long.valueOf(stageInstanceForChannel.c()) : null; Long valueOf = stageInstanceForChannel != null ? Long.valueOf(stageInstanceForChannel.c()) : null;
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
Map<Long, VoiceState> map = (Map) a.c(channel, this.stream.getVoiceStates$app_productionBetaRelease().get()); Map<Long, VoiceState> map = (Map) a.c(channel, this.stream.getVoiceStates$app_productionGoogleRelease().get());
if (map == null) { if (map == null) {
map = h0.emptyMap(); map = h0.emptyMap();
} }
VideoInputDeviceDescription selectedVideoInputDeviceBlocking = this.stream.getMediaEngine$app_productionBetaRelease().getSelectedVideoInputDeviceBlocking(); VideoInputDeviceDescription selectedVideoInputDeviceBlocking = this.stream.getMediaEngine$app_productionGoogleRelease().getSelectedVideoInputDeviceBlocking();
NetworkUtils networkUtils = NetworkUtils.INSTANCE; NetworkUtils networkUtils = NetworkUtils.INSTANCE;
Context context = this.context; Context context = this.context;
if (context == null) { if (context == null) {
@ -524,12 +524,12 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
@StoreThread @StoreThread
private final void logChannelLeave(Channel channel) { private final void logChannelLeave(Channel channel) {
String str; String str;
long id2 = this.stream.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId(); long id2 = this.stream.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId();
RtcConnection rtcConnection = this.rtcConnection; RtcConnection rtcConnection = this.rtcConnection;
if (rtcConnection != null && (str = rtcConnection.d) != null) { if (rtcConnection != null && (str = rtcConnection.d) != null) {
Long l = null; Long l = null;
String str2 = rtcConnection != null ? rtcConnection.f2077y : null; String str2 = rtcConnection != null ? rtcConnection.f2077y : null;
StageInstance stageInstanceForChannel = this.stream.getStageInstances$app_productionBetaRelease().getStageInstanceForChannel(channel.g()); StageInstance stageInstanceForChannel = this.stream.getStageInstances$app_productionGoogleRelease().getStageInstanceForChannel(channel.g());
Long valueOf = stageInstanceForChannel != null ? Long.valueOf(stageInstanceForChannel.c()) : null; Long valueOf = stageInstanceForChannel != null ? Long.valueOf(stageInstanceForChannel.c()) : null;
LinkedHashMap linkedHashMap = new LinkedHashMap(); LinkedHashMap linkedHashMap = new LinkedHashMap();
VoicePropsTracker voicePropsTracker = this.voicePropsTracker; VoicePropsTracker voicePropsTracker = this.voicePropsTracker;
@ -538,7 +538,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
} }
this.voicePropsTracker = null; this.voicePropsTracker = null;
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
Map<Long, VoiceState> map = (Map) a.c(channel, this.stream.getVoiceStates$app_productionBetaRelease().get()); Map<Long, VoiceState> map = (Map) a.c(channel, this.stream.getVoiceStates$app_productionGoogleRelease().get());
if (map == null) { if (map == null) {
map = h0.emptyMap(); map = h0.emptyMap();
} }
@ -645,7 +645,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
return this.quality; return this.quality;
} }
public final RtcConnection getRtcConnection$app_productionBetaRelease() { public final RtcConnection getRtcConnection$app_productionGoogleRelease() {
return this.rtcConnection; return this.rtcConnection;
} }
@ -701,19 +701,19 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
sb.append(channel3 != null ? Long.valueOf(channel3.g()) : null); sb.append(channel3 != null ? Long.valueOf(channel3.g()) : null);
destroyRtcConnection(sb.toString()); destroyRtcConnection(sb.toString());
} }
Channel findChannelByIdInternal$app_productionBetaRelease = l != null ? this.stream.getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(l.longValue()) : null; Channel findChannelByIdInternal$app_productionGoogleRelease = l != null ? this.stream.getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(l.longValue()) : null;
this.selectedVoiceChannel = findChannelByIdInternal$app_productionBetaRelease; this.selectedVoiceChannel = findChannelByIdInternal$app_productionGoogleRelease;
OutgoingPayload.VoiceStateUpdate voiceStateUpdate = this.currentVoiceState; OutgoingPayload.VoiceStateUpdate voiceStateUpdate = this.currentVoiceState;
if (findChannelByIdInternal$app_productionBetaRelease != null) { if (findChannelByIdInternal$app_productionGoogleRelease != null) {
Long valueOf = Long.valueOf(findChannelByIdInternal$app_productionBetaRelease.e()); Long valueOf = Long.valueOf(findChannelByIdInternal$app_productionGoogleRelease.e());
if (valueOf.longValue() > 0) { if (valueOf.longValue() > 0) {
l2 = valueOf; l2 = valueOf;
this.currentVoiceState = OutgoingPayload.VoiceStateUpdate.copy$default(voiceStateUpdate, l2, findChannelByIdInternal$app_productionBetaRelease == null ? Long.valueOf(findChannelByIdInternal$app_productionBetaRelease.g()) : null, false, false, false, null, 60, null); this.currentVoiceState = OutgoingPayload.VoiceStateUpdate.copy$default(voiceStateUpdate, l2, findChannelByIdInternal$app_productionGoogleRelease == null ? Long.valueOf(findChannelByIdInternal$app_productionGoogleRelease.g()) : null, false, false, false, null, 60, null);
if (findChannelByIdInternal$app_productionBetaRelease == null) { if (findChannelByIdInternal$app_productionGoogleRelease == null) {
this.hasSelectedVoiceChannel = true; this.hasSelectedVoiceChannel = true;
createRtcConnection(); createRtcConnection();
this.joinedChannelTimestamp = Long.valueOf(this.clock.currentTimeMillis()); this.joinedChannelTimestamp = Long.valueOf(this.clock.currentTimeMillis());
logChannelJoin(findChannelByIdInternal$app_productionBetaRelease); logChannelJoin(findChannelByIdInternal$app_productionGoogleRelease);
} else { } else {
this.voiceServer = null; this.voiceServer = null;
} }
@ -721,8 +721,8 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
} }
} }
l2 = null; l2 = null;
this.currentVoiceState = OutgoingPayload.VoiceStateUpdate.copy$default(voiceStateUpdate, l2, findChannelByIdInternal$app_productionBetaRelease == null ? Long.valueOf(findChannelByIdInternal$app_productionBetaRelease.g()) : null, false, false, false, null, 60, null); this.currentVoiceState = OutgoingPayload.VoiceStateUpdate.copy$default(voiceStateUpdate, l2, findChannelByIdInternal$app_productionGoogleRelease == null ? Long.valueOf(findChannelByIdInternal$app_productionGoogleRelease.g()) : null, false, false, false, null, 60, null);
if (findChannelByIdInternal$app_productionBetaRelease == null) { if (findChannelByIdInternal$app_productionGoogleRelease == null) {
} }
onVoiceStateUpdated(); onVoiceStateUpdated();
} }
@ -756,9 +756,9 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
Observable<R> G = companion.getMediaEngine().getSelectedVideoInputDevice().G(StoreRtcConnection$init$3.INSTANCE); Observable<R> G = companion.getMediaEngine().getSelectedVideoInputDevice().G(StoreRtcConnection$init$3.INSTANCE);
m.checkNotNullExpressionValue(G, "StoreStream\n .get…viceDescription != null }"); m.checkNotNullExpressionValue(G, "StoreStream\n .get…viceDescription != null }");
ObservableExtensionsKt.appSubscribe$default(G, StoreRtcConnection.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcConnection$init$4(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(G, StoreRtcConnection.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcConnection$init$4(this), 62, (Object) null);
ObservableExtensionsKt.appSubscribe$default(this.stream.getMediaSettings$app_productionBetaRelease().getUsersVolume(), StoreRtcConnection.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcConnection$init$5(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(this.stream.getMediaSettings$app_productionGoogleRelease().getUsersVolume(), StoreRtcConnection.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcConnection$init$5(this), 62, (Object) null);
ObservableExtensionsKt.appSubscribe$default(this.stream.getMediaSettings$app_productionBetaRelease().getUsersMuted(), StoreRtcConnection.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcConnection$init$6(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(this.stream.getMediaSettings$app_productionGoogleRelease().getUsersMuted(), StoreRtcConnection.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcConnection$init$6(this), 62, (Object) null);
ObservableExtensionsKt.appSubscribe$default(this.stream.getMediaSettings$app_productionBetaRelease().getUsersOffScreen(), StoreRtcConnection.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcConnection$init$7(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(this.stream.getMediaSettings$app_productionGoogleRelease().getUsersOffScreen(), StoreRtcConnection.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcConnection$init$7(this), 62, (Object) null);
} }
public final Observable<RtcConnection.Metadata> observeRtcConnectionMetadata() { public final Observable<RtcConnection.Metadata> observeRtcConnectionMetadata() {
@ -787,7 +787,7 @@ public final class StoreRtcConnection extends RtcConnection.b implements DebugPr
@Override // com.discord.rtcconnection.RtcConnection.b, com.discord.rtcconnection.RtcConnection.c @Override // com.discord.rtcconnection.RtcConnection.b, com.discord.rtcconnection.RtcConnection.c
public void onFatalClose() { public void onFatalClose() {
this.stream.getVoiceChannelSelected$app_productionBetaRelease().clear(); this.stream.getVoiceChannelSelected$app_productionGoogleRelease().clear();
} }
@Override // com.discord.rtcconnection.RtcConnection.b, com.discord.rtcconnection.RtcConnection.c @Override // com.discord.rtcconnection.RtcConnection.b, com.discord.rtcconnection.RtcConnection.c

View file

@ -135,7 +135,7 @@ public final class StoreRtcRegion {
} }
@StoreThread @StoreThread
public final void handleConnectionOpen$app_productionBetaRelease() { public final void handleConnectionOpen$app_productionGoogleRelease() {
Observable<Long> e02 = Observable.e0((long) (new Random().nextInt(29000) + 1000), TimeUnit.MILLISECONDS); Observable<Long> e02 = Observable.e0((long) (new Random().nextInt(29000) + 1000), TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(e02, "Observable.timer(fetchJi…), TimeUnit.MILLISECONDS)"); m.checkNotNullExpressionValue(e02, "Observable.timer(fetchJi…), TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(e02, StoreRtcRegion.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcRegion$handleConnectionOpen$1(this), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(e02, StoreRtcRegion.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new StoreRtcRegion$handleConnectionOpen$1(this), 62, (Object) null);

View file

@ -294,7 +294,7 @@ public final class StoreSearch {
} }
} }
public final void persistQuery$app_productionBetaRelease(SearchTarget searchTarget, List<? extends QueryNode> list) { public final void persistQuery$app_productionGoogleRelease(SearchTarget searchTarget, List<? extends QueryNode> list) {
m.checkNotNullParameter(searchTarget, "searchTarget"); m.checkNotNullParameter(searchTarget, "searchTarget");
m.checkNotNullParameter(list, "query"); m.checkNotNullParameter(list, "query");
this.historyCache.persistQuery(searchTarget, list); this.historyCache.persistQuery(searchTarget, list);

View file

@ -24,7 +24,7 @@ public final class StoreSearchQuery$parseAndQuery$2<T1, T2, R> implements Func2<
m.checkNotNullExpressionValue(list, "queryNodes"); m.checkNotNullExpressionValue(list, "queryNodes");
m.checkNotNullExpressionValue(searchData, "searchData"); m.checkNotNullExpressionValue(searchData, "searchData");
preprocessor.preprocess(list, searchData); preprocessor.preprocess(list, searchData);
this.$searchStore.persistQuery$app_productionBetaRelease(this.$searchTarget, list); this.$searchStore.persistQuery$app_productionGoogleRelease(this.$searchTarget, list);
return new SearchQuery.Builder().setIncludeNsfw(this.$includeNsfw).buildFrom(list, searchData); return new SearchQuery.Builder().setIncludeNsfw(this.$includeNsfw).buildFrom(list, searchData);
} }
} }

View file

@ -58,7 +58,7 @@ public final class StoreSlowMode extends Store {
if (observable != null) { if (observable != null) {
return observable; return observable;
} }
Observable<Integer> i02 = Observable.i0(new c0(this.stream.getPermissions$app_productionBetaRelease().observePermissionsForChannel(j).G(new StoreSlowMode$sam$rx_functions_Func1$0(new StoreSlowMode$getChannelCooldownObservable$newObservable$1(PermissionUtils.INSTANCE))).s().Z(new StoreSlowMode$getChannelCooldownObservable$newObservable$2(this, j)).G(StoreSlowMode$getChannelCooldownObservable$newObservable$3.INSTANCE).w(new StoreSlowMode$getChannelCooldownObservable$newObservable$4(this, j)).N(1))); Observable<Integer> i02 = Observable.i0(new c0(this.stream.getPermissions$app_productionGoogleRelease().observePermissionsForChannel(j).G(new StoreSlowMode$sam$rx_functions_Func1$0(new StoreSlowMode$getChannelCooldownObservable$newObservable$1(PermissionUtils.INSTANCE))).s().Z(new StoreSlowMode$getChannelCooldownObservable$newObservable$2(this, j)).G(StoreSlowMode$getChannelCooldownObservable$newObservable$3.INSTANCE).w(new StoreSlowMode$getChannelCooldownObservable$newObservable$4(this, j)).N(1)));
HashMap<Long, Observable<Integer>> hashMap = this.channelCooldownObservables; HashMap<Long, Observable<Integer>> hashMap = this.channelCooldownObservables;
Long valueOf = Long.valueOf(j); Long valueOf = Long.valueOf(j);
m.checkNotNullExpressionValue(i02, "newObservable"); m.checkNotNullExpressionValue(i02, "newObservable");
@ -92,8 +92,8 @@ public final class StoreSlowMode extends Store {
@StoreThread @StoreThread
public final void onMessageSent(long j) { public final void onMessageSent(long j) {
Channel findChannelByIdInternal$app_productionBetaRelease = this.stream.getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(j); Channel findChannelByIdInternal$app_productionGoogleRelease = this.stream.getChannels$app_productionGoogleRelease().findChannelByIdInternal$app_productionGoogleRelease(j);
int t = findChannelByIdInternal$app_productionBetaRelease != null ? findChannelByIdInternal$app_productionBetaRelease.t() : 0; int t = findChannelByIdInternal$app_productionGoogleRelease != null ? findChannelByIdInternal$app_productionGoogleRelease.t() : 0;
if (t > 0) { if (t > 0) {
onCooldownInternal(j, ((long) t) * 1000); onCooldownInternal(j, ((long) t) * 1000);
} }

View file

@ -212,10 +212,10 @@ public final class StoreSpotify {
String str2 = null; String str2 = null;
boolean z4 = true; boolean z4 = true;
if (this.spotifyState == null) { if (this.spotifyState == null) {
this.stream.getPresences$app_productionBetaRelease().updateActivity(ActivityType.LISTENING, null, true); this.stream.getPresences$app_productionGoogleRelease().updateActivity(ActivityType.LISTENING, null, true);
return; return;
} }
List<ModelConnectedAccount> connectedAccounts = this.stream.getUserConnections$app_productionBetaRelease().getConnectedAccounts(); List<ModelConnectedAccount> connectedAccounts = this.stream.getUserConnections$app_productionGoogleRelease().getConnectedAccounts();
if (!(connectedAccounts instanceof Collection) || !connectedAccounts.isEmpty()) { if (!(connectedAccounts instanceof Collection) || !connectedAccounts.isEmpty()) {
Iterator<T> it = connectedAccounts.iterator(); Iterator<T> it = connectedAccounts.iterator();
while (true) { while (true) {
@ -242,7 +242,7 @@ public final class StoreSpotify {
boolean component2 = spotifyState.component2(); boolean component2 = spotifyState.component2();
long component4 = spotifyState.component4(); long component4 = spotifyState.component4();
if (!component2 || component1 == null) { if (!component2 || component1 == null) {
this.stream.getPresences$app_productionBetaRelease().updateActivity(ActivityType.LISTENING, null, true); this.stream.getPresences$app_productionGoogleRelease().updateActivity(ActivityType.LISTENING, null, true);
return; return;
} }
ModelSpotifyAlbum album = component1.getAlbum(); ModelSpotifyAlbum album = component1.getAlbum();
@ -261,7 +261,7 @@ public final class StoreSpotify {
if (album2 != null) { if (album2 != null) {
str2 = album2.getName(); str2 = album2.getName();
} }
this.stream.getPresences$app_productionBetaRelease().updateActivity(ActivityType.LISTENING, ActivityUtilsKt.createSpotifyListeningActivity(currentTimeMillis, properName, name, id2, str2, str, u.joinToString$default(component1.getArtists(), null, null, null, 0, null, StoreSpotify$publishState$activity$1.INSTANCE, 31, null), component4, component1.getDurationMs() + component4, platform.getPlatformId() + ':' + this.stream.getUsers$app_productionBetaRelease().getMeInternal$app_productionBetaRelease().getId()), true); this.stream.getPresences$app_productionGoogleRelease().updateActivity(ActivityType.LISTENING, ActivityUtilsKt.createSpotifyListeningActivity(currentTimeMillis, properName, name, id2, str2, str, u.joinToString$default(component1.getArtists(), null, null, null, 0, null, StoreSpotify$publishState$activity$1.INSTANCE, 31, null), component4, component1.getDurationMs() + component4, platform.getPlatformId() + ':' + this.stream.getUsers$app_productionGoogleRelease().getMeInternal$app_productionGoogleRelease().getId()), true);
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE; AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String id3 = component1.getId(); String id3 = component1.getId();
ModelSpotifyAlbum album3 = component1.getAlbum(); ModelSpotifyAlbum album3 = component1.getAlbum();

View file

@ -182,11 +182,11 @@ public final class StoreStageChannels extends StoreV2 {
/* renamed from: computeUserRolesInDispatch-t27eFtU reason: not valid java name */ /* renamed from: computeUserRolesInDispatch-t27eFtU reason: not valid java name */
private final int m4computeUserRolesInDispatcht27eFtU(long j, Channel channel, Map<Long, VoiceState> map, Map<Long, GuildRole> map2) { private final int m4computeUserRolesInDispatcht27eFtU(long j, Channel channel, Map<Long, VoiceState> map, Map<Long, GuildRole> map2) {
Guild guild = (Guild) a.c(channel, this.guildsStore.getGuildsInternal$app_productionBetaRelease()); Guild guild = (Guild) a.c(channel, this.guildsStore.getGuildsInternal$app_productionGoogleRelease());
if (guild == null) { if (guild == null) {
return StageRoles.Companion.m30getAUDIENCE1LxfuJo(); return StageRoles.Companion.m30getAUDIENCE1LxfuJo();
} }
Map map3 = (Map) a.c(channel, this.guildsStore.getGuildMembersComputedInternal$app_productionBetaRelease()); Map map3 = (Map) a.c(channel, this.guildsStore.getGuildMembersComputedInternal$app_productionGoogleRelease());
if (map3 == null) { if (map3 == null) {
return StageRoles.Companion.m30getAUDIENCE1LxfuJo(); return StageRoles.Companion.m30getAUDIENCE1LxfuJo();
} }
@ -195,10 +195,10 @@ public final class StoreStageChannels extends StoreV2 {
return StageRoles.Companion.m30getAUDIENCE1LxfuJo(); return StageRoles.Companion.m30getAUDIENCE1LxfuJo();
} }
if (map2 == null) { if (map2 == null) {
map2 = (Map) a.c(channel, this.guildsStore.getGuildRolesInternal$app_productionBetaRelease()); map2 = (Map) a.c(channel, this.guildsStore.getGuildRolesInternal$app_productionGoogleRelease());
} }
if (map == null) { if (map == null) {
map = (Map) a.c(channel, this.voiceStatesStore.getInternal$app_productionBetaRelease()); map = (Map) a.c(channel, this.voiceStatesStore.getInternal$app_productionGoogleRelease());
} }
if (map == null) { if (map == null) {
return StageRoles.Companion.m30getAUDIENCE1LxfuJo(); return StageRoles.Companion.m30getAUDIENCE1LxfuJo();
@ -347,8 +347,8 @@ public final class StoreStageChannels extends StoreV2 {
Collection<Channel> values; Collection<Channel> values;
Sequence asSequence; Sequence asSequence;
Sequence<Long> mapNotNull; Sequence<Long> mapNotNull;
Map<Long, Channel> channelsForGuildInternal$app_productionBetaRelease = this.channelsStore.getChannelsForGuildInternal$app_productionBetaRelease(j); Map<Long, Channel> channelsForGuildInternal$app_productionGoogleRelease = this.channelsStore.getChannelsForGuildInternal$app_productionGoogleRelease(j);
return (channelsForGuildInternal$app_productionBetaRelease == null || (values = channelsForGuildInternal$app_productionBetaRelease.values()) == null || (asSequence = u.asSequence(values)) == null || (mapNotNull = q.mapNotNull(asSequence, StoreStageChannels$stageChannelIdsInGuildForDispatch$1.INSTANCE)) == null) ? n.emptySequence() : mapNotNull; return (channelsForGuildInternal$app_productionGoogleRelease == null || (values = channelsForGuildInternal$app_productionGoogleRelease.values()) == null || (asSequence = u.asSequence(values)) == null || (mapNotNull = q.mapNotNull(asSequence, StoreStageChannels$stageChannelIdsInGuildForDispatch$1.INSTANCE)) == null) ? n.emptySequence() : mapNotNull;
} }
public final Map<Long, StageRoles> getChannelRoles(long j) { public final Map<Long, StageRoles> getChannelRoles(long j) {
@ -507,14 +507,14 @@ public final class StoreStageChannels extends StoreV2 {
public final void handleGuildMemberAdd(com.discord.api.guildmember.GuildMember guildMember) { public final void handleGuildMemberAdd(com.discord.api.guildmember.GuildMember guildMember) {
StageRoles stageRoles; StageRoles stageRoles;
m.checkNotNullParameter(guildMember, "member"); m.checkNotNullParameter(guildMember, "member");
User user = this.userStore.getUsersInternal$app_productionBetaRelease().get(Long.valueOf(guildMember.j().i())); User user = this.userStore.getUsersInternal$app_productionGoogleRelease().get(Long.valueOf(guildMember.j().i()));
if (user == null || !user.isBot()) { if (user == null || !user.isBot()) {
for (Long l : stageChannelIdsInGuildForDispatch(guildMember.c())) { for (Long l : stageChannelIdsInGuildForDispatch(guildMember.c())) {
long longValue = l.longValue(); long longValue = l.longValue();
Map<Long, StageRoles> map = this.stageRolesByChannel.get(Long.valueOf(longValue)); Map<Long, StageRoles> map = this.stageRolesByChannel.get(Long.valueOf(longValue));
if (!(map == null || (stageRoles = map.get(Long.valueOf(guildMember.j().i()))) == null)) { if (!(map == null || (stageRoles = map.get(Long.valueOf(guildMember.j().i()))) == null)) {
int r15 = stageRoles.m28unboximpl(); int r15 = stageRoles.m28unboximpl();
Channel channel = this.channelsStore.getChannelsByIdInternal$app_productionBetaRelease().get(Long.valueOf(longValue)); Channel channel = this.channelsStore.getChannelsByIdInternal$app_productionGoogleRelease().get(Long.valueOf(longValue));
if (channel != null) { if (channel != null) {
int r5 = m5computeUserRolesInDispatcht27eFtU$default(this, guildMember.j().i(), channel, null, null, 12, null); int r5 = m5computeUserRolesInDispatcht27eFtU$default(this, guildMember.j().i(), channel, null, null, 12, null);
if (!StageRoles.m21equalsimpl0(r5, r15)) { if (!StageRoles.m21equalsimpl0(r5, r15)) {
@ -533,12 +533,12 @@ public final class StoreStageChannels extends StoreV2 {
public final void handleGuildMemberRemove(long j, long j2) { public final void handleGuildMemberRemove(long j, long j2) {
StageRoles stageRoles; StageRoles stageRoles;
Channel channel; Channel channel;
User user = this.userStore.getUsersInternal$app_productionBetaRelease().get(Long.valueOf(j2)); User user = this.userStore.getUsersInternal$app_productionGoogleRelease().get(Long.valueOf(j2));
if (user == null || !user.isBot()) { if (user == null || !user.isBot()) {
for (Long l : stageChannelIdsInGuildForDispatch(j)) { for (Long l : stageChannelIdsInGuildForDispatch(j)) {
long longValue = l.longValue(); long longValue = l.longValue();
Map<Long, StageRoles> map = this.stageRolesByChannel.get(Long.valueOf(longValue)); Map<Long, StageRoles> map = this.stageRolesByChannel.get(Long.valueOf(longValue));
if (!(map == null || (stageRoles = map.get(Long.valueOf(j2))) == null || (channel = this.channelsStore.getChannelsByIdInternal$app_productionBetaRelease().get(Long.valueOf(longValue))) == null)) { if (!(map == null || (stageRoles = map.get(Long.valueOf(j2))) == null || (channel = this.channelsStore.getChannelsByIdInternal$app_productionGoogleRelease().get(Long.valueOf(longValue))) == null)) {
m8handleUserLeftStageOrLostRolesGM3QuyE$default(this, channel, j2, stageRoles.m28unboximpl(), 0, 8, null); m8handleUserLeftStageOrLostRolesGM3QuyE$default(this, channel, j2, stageRoles.m28unboximpl(), 0, 8, null);
this.dirtyChannelIds.add(Long.valueOf(longValue)); this.dirtyChannelIds.add(Long.valueOf(longValue));
markChanged(); markChanged();
@ -584,32 +584,32 @@ public final class StoreStageChannels extends StoreV2 {
boolean z2; boolean z2;
Long a; Long a;
Long a2; Long a2;
Map<Long, VoiceState> map = this.voiceStatesStore.getInternal$app_productionBetaRelease().get(Long.valueOf(j)); Map<Long, VoiceState> map = this.voiceStatesStore.getInternal$app_productionGoogleRelease().get(Long.valueOf(j));
StageRoles stageRoles = null; StageRoles stageRoles = null;
VoiceState voiceState = map != null ? map.get(Long.valueOf(j3)) : null; VoiceState voiceState = map != null ? map.get(Long.valueOf(j3)) : null;
long longValue = (voiceState == null || (a2 = voiceState.a()) == null) ? j2 : a2.longValue(); long longValue = (voiceState == null || (a2 = voiceState.a()) == null) ? j2 : a2.longValue();
Channel channelInternal$app_productionBetaRelease = this.channelsStore.getChannelInternal$app_productionBetaRelease(j, longValue); Channel channelInternal$app_productionGoogleRelease = this.channelsStore.getChannelInternal$app_productionGoogleRelease(j, longValue);
Channel channelInternal$app_productionBetaRelease2 = this.channelsStore.getChannelInternal$app_productionBetaRelease(j, j2); Channel channelInternal$app_productionGoogleRelease2 = this.channelsStore.getChannelInternal$app_productionGoogleRelease(j, j2);
if (channelInternal$app_productionBetaRelease2 != null && AnimatableValueParser.u1(channelInternal$app_productionBetaRelease2) && (voiceState == null || (a = voiceState.a()) == null || a.longValue() != j2)) { if (channelInternal$app_productionGoogleRelease2 != null && AnimatableValueParser.u1(channelInternal$app_productionGoogleRelease2) && (voiceState == null || (a = voiceState.a()) == null || a.longValue() != j2)) {
Map<Long, StageRoles> map2 = this.stageRolesByChannel.get(Long.valueOf(j2)); Map<Long, StageRoles> map2 = this.stageRolesByChannel.get(Long.valueOf(j2));
if (map2 != null) { if (map2 != null) {
stageRoles = map2.remove(Long.valueOf(j3)); stageRoles = map2.remove(Long.valueOf(j3));
} }
if (stageRoles != null) { if (stageRoles != null) {
z2 = true; z2 = true;
m8handleUserLeftStageOrLostRolesGM3QuyE$default(this, channelInternal$app_productionBetaRelease2, j3, stageRoles.m28unboximpl(), 0, 8, null); m8handleUserLeftStageOrLostRolesGM3QuyE$default(this, channelInternal$app_productionGoogleRelease2, j3, stageRoles.m28unboximpl(), 0, 8, null);
this.dirtyChannelIds.add(Long.valueOf(j2)); this.dirtyChannelIds.add(Long.valueOf(j2));
markChanged(); markChanged();
if (voiceState != null && channelInternal$app_productionBetaRelease != null && AnimatableValueParser.u1(channelInternal$app_productionBetaRelease) == z2) { if (voiceState != null && channelInternal$app_productionGoogleRelease != null && AnimatableValueParser.u1(channelInternal$app_productionGoogleRelease) == z2) {
Map<Long, StageRoles> map3 = this.stageRolesByChannel.get(Long.valueOf(longValue)); Map<Long, StageRoles> map3 = this.stageRolesByChannel.get(Long.valueOf(longValue));
if (map3 == null) { if (map3 == null) {
map3 = new LinkedHashMap<>(); map3 = new LinkedHashMap<>();
this.stageRolesByChannel.put(Long.valueOf(longValue), map3); this.stageRolesByChannel.put(Long.valueOf(longValue), map3);
} }
StageRoles stageRoles2 = map3.get(Long.valueOf(j3)); StageRoles stageRoles2 = map3.get(Long.valueOf(j3));
int r6 = m5computeUserRolesInDispatcht27eFtU$default(this, j3, channelInternal$app_productionBetaRelease, map, null, 8, null); int r6 = m5computeUserRolesInDispatcht27eFtU$default(this, j3, channelInternal$app_productionGoogleRelease, map, null, 8, null);
if (StageRoles.m20equalsimpl(r6, stageRoles2) ^ z2) { if (StageRoles.m20equalsimpl(r6, stageRoles2) ^ z2) {
m9handleUserRoleChangeuOJZ9lM(channelInternal$app_productionBetaRelease, j3, stageRoles2, r6); m9handleUserRoleChangeuOJZ9lM(channelInternal$app_productionGoogleRelease, j3, stageRoles2, r6);
map3.put(Long.valueOf(j3), StageRoles.m18boximpl(r6)); map3.put(Long.valueOf(j3), StageRoles.m18boximpl(r6));
this.dirtyChannelIds.add(Long.valueOf(longValue)); this.dirtyChannelIds.add(Long.valueOf(longValue));
markChanged(); markChanged();

View file

@ -14,6 +14,6 @@ public final class StoreStream$Companion$initialize$1 extends o implements Funct
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final String mo1invoke() { public final String mo1invoke() {
return StoreStream.Companion.access$getCollector$p(StoreStream.Companion).getAuthentication$app_productionBetaRelease().getAuthToken$app_productionBetaRelease(); return StoreStream.Companion.access$getCollector$p(StoreStream.Companion).getAuthentication$app_productionGoogleRelease().getAuthToken$app_productionGoogleRelease();
} }
} }

View file

@ -14,6 +14,6 @@ public final class StoreStream$Companion$initialize$2 extends o implements Funct
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final String mo1invoke() { public final String mo1invoke() {
return StoreStream.Companion.access$getCollector$p(StoreStream.Companion).getAuthentication$app_productionBetaRelease().getFingerprint$app_productionBetaRelease(); return StoreStream.Companion.access$getCollector$p(StoreStream.Companion).getAuthentication$app_productionGoogleRelease().getFingerprint$app_productionGoogleRelease();
} }
} }

View file

@ -14,6 +14,6 @@ public final class StoreStream$Companion$initialize$3 extends o implements Funct
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final String mo1invoke() { public final String mo1invoke() {
return StoreStream.Companion.access$getCollector$p(StoreStream.Companion).getUserSettingsSystem$app_productionBetaRelease().getLocale(); return StoreStream.Companion.access$getCollector$p(StoreStream.Companion).getUserSettingsSystem$app_productionGoogleRelease().getLocale();
} }
} }

View file

@ -22,6 +22,6 @@ public final class StoreStream$channels$1 extends o implements Function1<Long, O
} }
public final Observable<Map<Long, Long>> invoke(long j) { public final Observable<Map<Long, Long>> invoke(long j) {
return this.this$0.getPermissions$app_productionBetaRelease().observeChannelPermissionsForGuild(j); return this.this$0.getPermissions$app_productionGoogleRelease().observeChannelPermissionsForGuild(j);
} }
} }

View file

@ -18,6 +18,6 @@ public final class StoreStream$channels$2 extends o implements Function0<List<?
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final List<? extends Long> mo1invoke() { public final List<? extends Long> mo1invoke() {
return u.toList(this.this$0.getLurking$app_productionBetaRelease().getLurkingGuildIdsSync()); return u.toList(this.this$0.getLurking$app_productionGoogleRelease().getLurkingGuildIdsSync());
} }
} }

View file

@ -17,6 +17,6 @@ public final class StoreStream$channels$3 extends o implements Function0<Boolean
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final Boolean mo1invoke() { public final Boolean mo1invoke() {
return this.this$0.getAuthentication$app_productionBetaRelease().isAuthed(); return this.this$0.getAuthentication$app_productionGoogleRelease().isAuthed();
} }
} }

View file

@ -304,97 +304,98 @@ public final class StoreStream$deferredInit$1 extends o implements Function0<Uni
NetworkMonitor networkMonitor = new NetworkMonitor(this.$context, AppLog.g); NetworkMonitor networkMonitor = new NetworkMonitor(this.$context, AppLog.g);
ContactsFetcher contactsFetcher = new ContactsFetcher(this.$context); ContactsFetcher contactsFetcher = new ContactsFetcher(this.$context);
StoreStream.access$startStoreInitializationTimer(this.this$0, networkMonitor); StoreStream.access$startStoreInitializationTimer(this.this$0, networkMonitor);
this.this$0.getExperiments$app_productionBetaRelease().init(this.$context); this.this$0.getExperiments$app_productionGoogleRelease().init(this.$context);
RebrandFeatureFlag rebrandFeatureFlag = RebrandFeatureFlag.f1593c; RebrandFeatureFlag rebrandFeatureFlag = RebrandFeatureFlag.f1593c;
RebrandFeatureFlag a = RebrandFeatureFlag.a(); RebrandFeatureFlag a = RebrandFeatureFlag.a();
StoreExperiments experiments$app_productionBetaRelease = this.this$0.getExperiments$app_productionBetaRelease(); StoreExperiments experiments$app_productionGoogleRelease = this.this$0.getExperiments$app_productionGoogleRelease();
Objects.requireNonNull(a); Objects.requireNonNull(a);
m.checkNotNullParameter(experiments$app_productionBetaRelease, "storeExperiments"); m.checkNotNullParameter(experiments$app_productionGoogleRelease, "storeExperiments");
ObservableExtensionsKt.appSubscribe$default(a.b(experiments$app_productionBetaRelease), RebrandFeatureFlag.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, p0.i, 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(a.b(experiments$app_productionGoogleRelease), RebrandFeatureFlag.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, p0.i, 62, (Object) null);
AudioManagerFeatureFlag audioManagerFeatureFlag = AudioManagerFeatureFlag.b; AudioManagerFeatureFlag audioManagerFeatureFlag = AudioManagerFeatureFlag.b;
AudioManagerFeatureFlag a2 = AudioManagerFeatureFlag.a(); AudioManagerFeatureFlag a2 = AudioManagerFeatureFlag.a();
StoreExperiments experiments$app_productionBetaRelease2 = this.this$0.getExperiments$app_productionBetaRelease(); StoreExperiments experiments$app_productionGoogleRelease2 = this.this$0.getExperiments$app_productionGoogleRelease();
Objects.requireNonNull(a2); Objects.requireNonNull(a2);
m.checkNotNullParameter(experiments$app_productionBetaRelease2, "storeExperiments"); m.checkNotNullParameter(experiments$app_productionGoogleRelease2, "storeExperiments");
Observable<R> G = experiments$app_productionBetaRelease2.observeUserExperiment("2021-05_opensl_default_enable_android", true).y(ObservableExtensionsKt$filterNull$1.INSTANCE).G(ObservableExtensionsKt$filterNull$2.INSTANCE); Observable<R> G = experiments$app_productionGoogleRelease2.observeUserExperiment("2021-05_opensl_default_enable_android", true).y(ObservableExtensionsKt$filterNull$1.INSTANCE).G(ObservableExtensionsKt$filterNull$2.INSTANCE);
m.checkNotNullExpressionValue(G, "filter { it != null }.map { it!! }"); m.checkNotNullExpressionValue(G, "filter { it != null }.map { it!! }");
Observable a02 = G.a0(1); Observable a02 = G.a0(1);
m.checkNotNullExpressionValue(a02, "storeExperiments.observe…erNull()\n .take(1)"); m.checkNotNullExpressionValue(a02, "storeExperiments.observe…erNull()\n .take(1)");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(a02), AudioManagerFeatureFlag.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new k0(a2), 62, (Object) null); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.computationLatest(a02), AudioManagerFeatureFlag.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new k0(a2), 62, (Object) null);
this.this$0.getMediaEngine$app_productionBetaRelease().init(this.$context); this.this$0.getMediaEngine$app_productionGoogleRelease().init(this.$context);
this.this$0.getAccessibility$app_productionBetaRelease().init(this.$context); this.this$0.getAccessibility$app_productionGoogleRelease().init(this.$context);
this.this$0.getGatewaySocket$app_productionBetaRelease().init(this.$context, networkMonitor); this.this$0.getGatewaySocket$app_productionGoogleRelease().init(this.$context, networkMonitor);
this.this$0.getNavigation$app_productionBetaRelease().init(this.$context); this.this$0.getNavigation$app_productionGoogleRelease().init(this.$context);
this.this$0.getNux$app_productionBetaRelease().init(this.$context); this.this$0.getNux$app_productionGoogleRelease().init(this.$context);
this.this$0.getChannels$app_productionBetaRelease().init(); this.this$0.getChannels$app_productionGoogleRelease().init();
this.this$0.getUsers$app_productionBetaRelease().init(this.$context); this.this$0.getUsers$app_productionGoogleRelease().init(this.$context);
this.this$0.getGuilds$app_productionBetaRelease().init(this.$context); this.this$0.getGuilds$app_productionGoogleRelease().init(this.$context);
this.this$0.getPermissions$app_productionBetaRelease().init(); this.this$0.getPermissions$app_productionGoogleRelease().init();
this.this$0.getGuildsSorted$app_productionBetaRelease().init(this.$context); this.this$0.getGuildsSorted$app_productionGoogleRelease().init(this.$context);
this.this$0.getGuildsNsfw$app_productionBetaRelease().init(this.$context); this.this$0.getGuildsNsfw$app_productionGoogleRelease().init(this.$context);
this.this$0.getGuildSelected$app_productionBetaRelease().init(this.$context); this.this$0.getGuildSelected$app_productionGoogleRelease().init(this.$context);
this.this$0.getChannelsSelected$app_productionBetaRelease().init(); this.this$0.getChannelsSelected$app_productionGoogleRelease().init();
this.this$0.getMessages$app_productionBetaRelease().init(this.$context); this.this$0.getMediaSettings$app_productionGoogleRelease().init();
this.this$0.getMessagesLoader$app_productionBetaRelease().init(this.$context); this.this$0.getMessages$app_productionGoogleRelease().init(this.$context);
this.this$0.getMessageAck$app_productionBetaRelease().init(this.$context); this.this$0.getMessagesLoader$app_productionGoogleRelease().init(this.$context);
this.this$0.getMessagesMostRecent$app_productionBetaRelease().init(this.$context); this.this$0.getMessageAck$app_productionGoogleRelease().init(this.$context);
this.this$0.getNotifications$app_productionBetaRelease().init(this.$context); this.this$0.getMessagesMostRecent$app_productionGoogleRelease().init(this.$context);
this.this$0.getRtcConnection$app_productionBetaRelease().init(this.$context, networkMonitor); this.this$0.getNotifications$app_productionGoogleRelease().init(this.$context);
this.this$0.getReadStates$app_productionBetaRelease().init(this.$context); this.this$0.getRtcConnection$app_productionGoogleRelease().init(this.$context, networkMonitor);
this.this$0.getVoiceChannelSelected$app_productionBetaRelease().init(this.$context); this.this$0.getReadStates$app_productionGoogleRelease().init(this.$context);
this.this$0.getVoiceSpeaking$app_productionBetaRelease().init(this.$context); this.this$0.getVoiceChannelSelected$app_productionGoogleRelease().init(this.$context);
this.this$0.getVoiceParticipants$app_productionBetaRelease().init(this.$context); this.this$0.getVoiceSpeaking$app_productionGoogleRelease().init(this.$context);
this.this$0.getConnectivity$app_productionBetaRelease().init(networkMonitor); this.this$0.getVoiceParticipants$app_productionGoogleRelease().init(this.$context);
this.this$0.getClientVersion$app_productionBetaRelease().init(this.$context); this.this$0.getConnectivity$app_productionGoogleRelease().init(networkMonitor);
this.this$0.getMediaSettings$app_productionBetaRelease().init(this.$context); this.this$0.getClientVersion$app_productionGoogleRelease().init(this.$context);
this.this$0.getAnalytics$app_productionBetaRelease().init(this.$context); this.this$0.getMediaSettings$app_productionGoogleRelease().init(this.$context);
this.this$0.getCollapsedChannelCategories$app_productionBetaRelease().init(this.$context); this.this$0.getAnalytics$app_productionGoogleRelease().init(this.$context);
this.this$0.getCollapsedChannelCategories$app_productionGoogleRelease().init(this.$context);
StoreStream.access$getAudioManager$p(this.this$0).init(this.$context); StoreStream.access$getAudioManager$p(this.this$0).init(this.$context);
this.this$0.getGuildSettings$app_productionBetaRelease().init(this.$context); this.this$0.getGuildSettings$app_productionGoogleRelease().init(this.$context);
this.this$0.getNotices$app_productionBetaRelease().init(this.$context); this.this$0.getNotices$app_productionGoogleRelease().init(this.$context);
this.this$0.getUserConnections$app_productionBetaRelease().init(this.$context); this.this$0.getUserConnections$app_productionGoogleRelease().init(this.$context);
this.this$0.getChangeLogStore$app_productionBetaRelease().init(this.$context); this.this$0.getChangeLogStore$app_productionGoogleRelease().init(this.$context);
this.this$0.getReviewRequestStore$app_productionBetaRelease().init(this.$context); this.this$0.getReviewRequestStore$app_productionGoogleRelease().init(this.$context);
this.this$0.getPresences$app_productionBetaRelease().init(this.$context); this.this$0.getPresences$app_productionGoogleRelease().init(this.$context);
this.this$0.getSpotify$app_productionBetaRelease().init(this.$context); this.this$0.getSpotify$app_productionGoogleRelease().init(this.$context);
StoreStream.access$getStreamRtcConnection$p(this.this$0).init(networkMonitor); StoreStream.access$getStreamRtcConnection$p(this.this$0).init(networkMonitor);
this.this$0.getGuildsSorted$app_productionBetaRelease().init(this.$context); this.this$0.getGuildsSorted$app_productionGoogleRelease().init(this.$context);
this.this$0.getExpandedGuildFolders$app_productionBetaRelease().init(this.$context); this.this$0.getExpandedGuildFolders$app_productionGoogleRelease().init(this.$context);
this.this$0.getAudioDevices$app_productionBetaRelease().init(); this.this$0.getAudioDevices$app_productionGoogleRelease().init();
this.this$0.getUserRelationships$app_productionBetaRelease().init(); this.this$0.getUserRelationships$app_productionGoogleRelease().init();
this.this$0.getUserSettings$app_productionBetaRelease().init(this.$context); this.this$0.getUserSettings$app_productionGoogleRelease().init(this.$context);
this.this$0.getMaskedLinks$app_productionBetaRelease().init(this.$context); this.this$0.getMaskedLinks$app_productionGoogleRelease().init(this.$context);
this.this$0.getRtcRegion$app_productionBetaRelease().init(); this.this$0.getRtcRegion$app_productionGoogleRelease().init();
this.this$0.getStickers$app_productionBetaRelease().init(); this.this$0.getStickers$app_productionGoogleRelease().init();
this.this$0.getGooglePlayPurchases$app_productionBetaRelease().init(this.$context); this.this$0.getGooglePlayPurchases$app_productionGoogleRelease().init(this.$context);
this.this$0.getPhone$app_productionBetaRelease().init(this.$context); this.this$0.getPhone$app_productionGoogleRelease().init(this.$context);
this.this$0.getApplicationInteractions$app_productionBetaRelease().init(this.$context); this.this$0.getApplicationInteractions$app_productionGoogleRelease().init(this.$context);
this.this$0.getStageSelfPresence$app_productionBetaRelease().init(); this.this$0.getStageSelfPresence$app_productionGoogleRelease().init();
this.this$0.getContactSync$app_productionBetaRelease().init(contactsFetcher); this.this$0.getContactSync$app_productionGoogleRelease().init(contactsFetcher);
this.this$0.getAudioManagerV2$app_productionBetaRelease().init(this.$context); this.this$0.getAudioManagerV2$app_productionGoogleRelease().init(this.$context);
this.this$0.getOutboundPromotions$app_productionBetaRelease().init(this.$context); this.this$0.getOutboundPromotions$app_productionGoogleRelease().init(this.$context);
StoreStream storeStream = this.this$0; StoreStream storeStream = this.this$0;
StoreStream.access$dispatchSubscribe(storeStream, storeStream.getAuthentication$app_productionBetaRelease().getPreLogoutSignal$app_productionBetaRelease(), "streamPreLogout", new AnonymousClass1(this)); StoreStream.access$dispatchSubscribe(storeStream, storeStream.getAuthentication$app_productionGoogleRelease().getPreLogoutSignal$app_productionGoogleRelease(), "streamPreLogout", new AnonymousClass1(this));
StoreStream storeStream2 = this.this$0; StoreStream storeStream2 = this.this$0;
StoreStream.access$dispatchSubscribe(storeStream2, storeStream2.getAuthentication$app_productionBetaRelease().getAuthedToken$app_productionBetaRelease(), "streamAuthedToken", new AnonymousClass2(this.this$0)); StoreStream.access$dispatchSubscribe(storeStream2, storeStream2.getAuthentication$app_productionGoogleRelease().getAuthedToken$app_productionGoogleRelease(), "streamAuthedToken", new AnonymousClass2(this.this$0));
StoreStream storeStream3 = this.this$0; StoreStream storeStream3 = this.this$0;
StoreStream.access$dispatchSubscribe(storeStream3, storeStream3.getAuthentication$app_productionBetaRelease().getFingerPrint$app_productionBetaRelease(), "streamAuthedFingerprint", new AnonymousClass3(this.this$0)); StoreStream.access$dispatchSubscribe(storeStream3, storeStream3.getAuthentication$app_productionGoogleRelease().getFingerPrint$app_productionGoogleRelease(), "streamAuthedFingerprint", new AnonymousClass3(this.this$0));
StoreStream storeStream4 = this.this$0; StoreStream storeStream4 = this.this$0;
StoreStream.access$dispatchSubscribe(storeStream4, storeStream4.getMessagesLoader$app_productionBetaRelease().get(), "streamMessagesLoaded", new AnonymousClass4(this.this$0)); StoreStream.access$dispatchSubscribe(storeStream4, storeStream4.getMessagesLoader$app_productionGoogleRelease().get(), "streamMessagesLoaded", new AnonymousClass4(this.this$0));
StoreStream storeStream5 = this.this$0; StoreStream storeStream5 = this.this$0;
StoreStream.access$dispatchSubscribe(storeStream5, storeStream5.getChannelsSelected$app_productionBetaRelease().observeId(), "streamChannelSelected", new AnonymousClass5(this.this$0)); StoreStream.access$dispatchSubscribe(storeStream5, storeStream5.getChannelsSelected$app_productionGoogleRelease().observeId(), "streamChannelSelected", new AnonymousClass5(this.this$0));
StoreStream storeStream6 = this.this$0; StoreStream storeStream6 = this.this$0;
StoreStream.access$dispatchSubscribe(storeStream6, storeStream6.getVoiceChannelSelected$app_productionBetaRelease().observeSelectedVoiceChannelId(), "streamVoiceChannelSelected", new AnonymousClass6(this.this$0)); StoreStream.access$dispatchSubscribe(storeStream6, storeStream6.getVoiceChannelSelected$app_productionGoogleRelease().observeSelectedVoiceChannelId(), "streamVoiceChannelSelected", new AnonymousClass6(this.this$0));
StoreStream storeStream7 = this.this$0; StoreStream storeStream7 = this.this$0;
StoreStream.access$dispatchSubscribe(storeStream7, storeStream7.getVoiceSpeaking$app_productionBetaRelease().observeSpeakingUsers(), "streamUserSpeaking", new AnonymousClass7(this.this$0)); StoreStream.access$dispatchSubscribe(storeStream7, storeStream7.getVoiceSpeaking$app_productionGoogleRelease().observeSpeakingUsers(), "streamUserSpeaking", new AnonymousClass7(this.this$0));
StoreStream storeStream8 = this.this$0; StoreStream storeStream8 = this.this$0;
StoreStream.access$dispatchSubscribe(storeStream8, storeStream8.getRtcConnection$app_productionBetaRelease().getConnectionState(), "streamRtcConnectionStateChanged", new AnonymousClass8(this.this$0)); StoreStream.access$dispatchSubscribe(storeStream8, storeStream8.getRtcConnection$app_productionGoogleRelease().getConnectionState(), "streamRtcConnectionStateChanged", new AnonymousClass8(this.this$0));
StoreStream storeStream9 = this.this$0; StoreStream storeStream9 = this.this$0;
StoreStream.access$dispatchSubscribe(storeStream9, storeStream9.getRtcConnection$app_productionBetaRelease().getSpeakingUpdates(), "streamRtcSpeakingUpdates", new AnonymousClass9(this.this$0)); StoreStream.access$dispatchSubscribe(storeStream9, storeStream9.getRtcConnection$app_productionGoogleRelease().getSpeakingUpdates(), "streamRtcSpeakingUpdates", new AnonymousClass9(this.this$0));
StoreStream.access$initGatewaySocketListeners(this.this$0); StoreStream.access$initGatewaySocketListeners(this.this$0);
StoreStream.access$dispatchSubscribe(this.this$0, d.d.a(), "streamBackgrounded", new AnonymousClass10(this.this$0)); StoreStream.access$dispatchSubscribe(this.this$0, d.d.a(), "streamBackgrounded", new AnonymousClass10(this.this$0));
StoreStream storeStream10 = this.this$0; StoreStream storeStream10 = this.this$0;
Observable h = Observable.h(storeStream10.getExperiments$app_productionBetaRelease().isInitialized().s(), this.this$0.getAuthentication$app_productionBetaRelease().observeIsAuthed$app_productionBetaRelease(), this.this$0.getChannelsSelected$app_productionBetaRelease().observeInitializedForAuthedUser(), Persister.Companion.isPreloaded(), AnonymousClass11.INSTANCE); Observable h = Observable.h(storeStream10.getExperiments$app_productionGoogleRelease().isInitialized().s(), this.this$0.getAuthentication$app_productionGoogleRelease().observeIsAuthed$app_productionGoogleRelease(), this.this$0.getChannelsSelected$app_productionGoogleRelease().observeInitializedForAuthedUser(), Persister.Companion.isPreloaded(), AnonymousClass11.INSTANCE);
m.checkNotNullExpressionValue(h, "Observable\n .comb…tedInitialized)\n }"); m.checkNotNullExpressionValue(h, "Observable\n .comb…tedInitialized)\n }");
StoreStream.access$dispatchSubscribe(storeStream10, h, "streamInit", new AnonymousClass12(StoreStream.access$getInitialized$p(this.this$0))); StoreStream.access$dispatchSubscribe(storeStream10, h, "streamInit", new AnonymousClass12(StoreStream.access$getInitialized$p(this.this$0)));
AppLog.i("[StoreStream] Application stores initialized in: " + timeElapsed.getSeconds() + " seconds."); AppLog.i("[StoreStream] Application stores initialized in: " + timeElapsed.getSeconds() + " seconds.");

View file

@ -22,6 +22,6 @@ public final class StoreStream$userSettingsSystem$1 extends o implements Functio
} }
public final void invoke(int i) { public final void invoke(int i) {
this.this$0.getAccessibility$app_productionBetaRelease().updateFontScale(i); this.this$0.getAccessibility$app_productionGoogleRelease().updateFontScale(i);
} }
} }

File diff suppressed because it is too large Load diff

View file

@ -264,7 +264,7 @@ public final class StoreStreamRtcConnection extends StoreV2 implements DebugPrin
/* JADX INFO: this call moved to the top of the method (can break code semantics) */ /* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ StoreStreamRtcConnection(StoreMediaEngine storeMediaEngine, StoreUser storeUser, StoreStream storeStream, Dispatcher dispatcher, Clock clock, StoreAnalytics storeAnalytics, StoreRtcConnection storeRtcConnection, ObservationDeck observationDeck, Logger logger, DebugPrintableCollection debugPrintableCollection, int i, DefaultConstructorMarker defaultConstructorMarker) { public /* synthetic */ StoreStreamRtcConnection(StoreMediaEngine storeMediaEngine, StoreUser storeUser, StoreStream storeStream, Dispatcher dispatcher, Clock clock, StoreAnalytics storeAnalytics, StoreRtcConnection storeRtcConnection, ObservationDeck observationDeck, Logger logger, DebugPrintableCollection debugPrintableCollection, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(storeMediaEngine, storeUser, storeStream, dispatcher, clock, storeAnalytics, storeRtcConnection, (i & 128) != 0 ? ObservationDeckProvider.get() : observationDeck, (i & 256) != 0 ? AppLog.g : logger, (i & 512) != 0 ? SystemLogUtils.INSTANCE.getDebugPrintables$app_productionBetaRelease() : debugPrintableCollection); this(storeMediaEngine, storeUser, storeStream, dispatcher, clock, storeAnalytics, storeRtcConnection, (i & 128) != 0 ? ObservationDeckProvider.get() : observationDeck, (i & 256) != 0 ? AppLog.g : logger, (i & 512) != 0 ? SystemLogUtils.INSTANCE.getDebugPrintables$app_productionGoogleRelease() : debugPrintableCollection);
} }
public static final /* synthetic */ StoreAnalytics access$getAnalyticsStore$p(StoreStreamRtcConnection storeStreamRtcConnection) { public static final /* synthetic */ StoreAnalytics access$getAnalyticsStore$p(StoreStreamRtcConnection storeStreamRtcConnection) {
@ -444,7 +444,7 @@ public final class StoreStreamRtcConnection extends StoreV2 implements DebugPrin
Long l; Long l;
m.checkNotNullParameter(streamCreateOrUpdate, "streamCreate"); m.checkNotNullParameter(streamCreateOrUpdate, "streamCreate");
ModelApplicationStream decodeStreamKey = ModelApplicationStream.Companion.decodeStreamKey(streamCreateOrUpdate.getStreamKey()); ModelApplicationStream decodeStreamKey = ModelApplicationStream.Companion.decodeStreamKey(streamCreateOrUpdate.getStreamKey());
long id2 = this.userStore.getMeInternal$app_productionBetaRelease().getId(); long id2 = this.userStore.getMeInternal$app_productionGoogleRelease().getId();
String str = this.sessionId; String str = this.sessionId;
if (str != null) { if (str != null) {
RtcConnection rtcConnection = this.rtcConnection; RtcConnection rtcConnection = this.rtcConnection;

View file

@ -21,6 +21,6 @@ public final class StoreTabsNavigation$selectTab$1 extends o implements Function
@Override // kotlin.jvm.functions.Function0 @Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */ /* renamed from: invoke */
public final void mo1invoke() { public final void mo1invoke() {
this.this$0.selectTabInternal$app_productionBetaRelease(this.$navigationTab, this.$dismissTabsDialogs); this.this$0.selectTabInternal$app_productionGoogleRelease(this.$navigationTab, this.$dismissTabsDialogs);
} }
} }

View file

@ -75,11 +75,11 @@ public final class StoreTabsNavigation extends StoreV2 {
storeTabsNavigation.selectTab(navigationTab, z2); storeTabsNavigation.selectTab(navigationTab, z2);
} }
public static /* synthetic */ void selectTabInternal$app_productionBetaRelease$default(StoreTabsNavigation storeTabsNavigation, NavigationTab navigationTab, boolean z2, int i, Object obj) { public static /* synthetic */ void selectTabInternal$app_productionGoogleRelease$default(StoreTabsNavigation storeTabsNavigation, NavigationTab navigationTab, boolean z2, int i, Object obj) {
if ((i & 2) != 0) { if ((i & 2) != 0) {
z2 = false; z2 = false;
} }
storeTabsNavigation.selectTabInternal$app_productionBetaRelease(navigationTab, z2); storeTabsNavigation.selectTabInternal$app_productionGoogleRelease(navigationTab, z2);
} }
public final NavigationTab getSelectedTab() { public final NavigationTab getSelectedTab() {
@ -88,7 +88,7 @@ public final class StoreTabsNavigation extends StoreV2 {
@StoreThread @StoreThread
public final void handlePreLogout() { public final void handlePreLogout() {
selectTabInternal$app_productionBetaRelease$default(this, NavigationTab.HOME, false, 2, null); selectTabInternal$app_productionGoogleRelease$default(this, NavigationTab.HOME, false, 2, null);
} }
public final Observable<Unit> observeDismissTabsDialogEvent() { public final Observable<Unit> observeDismissTabsDialogEvent() {
@ -114,7 +114,7 @@ public final class StoreTabsNavigation extends StoreV2 {
} }
@StoreThread @StoreThread
public final void selectTabInternal$app_productionBetaRelease(NavigationTab navigationTab, boolean z2) { public final void selectTabInternal$app_productionGoogleRelease(NavigationTab navigationTab, boolean z2) {
m.checkNotNullParameter(navigationTab, "navigationTab"); m.checkNotNullParameter(navigationTab, "navigationTab");
handleTabSelection(navigationTab); handleTabSelection(navigationTab);
if (z2) { if (z2) {

Some files were not shown because too many files have changed in this diff Show more