2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.stores;
|
|
|
|
|
|
|
|
import com.discord.api.channel.Channel;
|
|
|
|
import com.discord.models.domain.ModelNotificationSettings;
|
|
|
|
import com.discord.models.guild.Guild;
|
|
|
|
import com.discord.utilities.analytics.AnalyticsTracker;
|
|
|
|
import com.discord.utilities.channel.ChannelNotificationSettingsUtils;
|
|
|
|
import d0.z.d.o;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
/* compiled from: StoreAnalytics.kt */
|
|
|
|
public final class StoreAnalytics$onThreadNotificationSettingsUpdated$1 extends o implements Function0<Unit> {
|
|
|
|
public final /* synthetic */ long $channelId;
|
|
|
|
public final /* synthetic */ int $flags;
|
|
|
|
public final /* synthetic */ int $oldFlags;
|
|
|
|
public final /* synthetic */ long $parentChannelId;
|
|
|
|
public final /* synthetic */ StoreAnalytics this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public StoreAnalytics$onThreadNotificationSettingsUpdated$1(StoreAnalytics storeAnalytics, long j, long j2, int i, int i2) {
|
|
|
|
super(0);
|
|
|
|
this.this$0 = storeAnalytics;
|
|
|
|
this.$channelId = j;
|
|
|
|
this.$parentChannelId = j2;
|
|
|
|
this.$oldFlags = i;
|
|
|
|
this.$flags = i2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
|
|
/* renamed from: invoke */
|
|
|
|
public final void mo1invoke() {
|
|
|
|
Channel findChannelByIdInternal$app_productionBetaRelease;
|
|
|
|
ModelNotificationSettings modelNotificationSettings;
|
|
|
|
Channel findChannelByIdInternal$app_productionBetaRelease2 = StoreAnalytics.access$getStores$p(this.this$0).getChannels$app_productionBetaRelease().findChannelByIdInternal$app_productionBetaRelease(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) {
|
|
|
|
boolean z2 = (this.$oldFlags & 1) != 0;
|
2021-07-03 23:36:06 +00:00
|
|
|
long f = findChannelByIdInternal$app_productionBetaRelease2.f();
|
|
|
|
Guild guild = StoreAnalytics.access$getStores$p(this.this$0).getGuilds$app_productionBetaRelease().getGuild(f);
|
|
|
|
if (guild != null && (modelNotificationSettings = StoreAnalytics.access$getStores$p(this.this$0).getGuildSettings$app_productionBetaRelease().getGuildSettingsInternal$app_productionBetaRelease().get(Long.valueOf(f))) != null) {
|
2021-06-27 20:44:35 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|