package com.discord.utilities.channel; import com.discord.api.channel.Channel; import com.discord.api.channel.ChannelUtils; import com.discord.stores.SelectedChannelAnalyticsLocation; import com.discord.widgets.chat.list.TextInVoiceFeatureFlag; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: ChannelSelector.kt */ public final class ChannelSelector$selectChannel$2 extends o implements Function1 { public final /* synthetic */ SelectedChannelAnalyticsLocation $analyticsLocation; public final /* synthetic */ long $channelId; public final /* synthetic */ long $guildId; public final /* synthetic */ Long $peekParent; public final /* synthetic */ ChannelSelector this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public ChannelSelector$selectChannel$2(ChannelSelector channelSelector, long j, long j2, Long l, SelectedChannelAnalyticsLocation selectedChannelAnalyticsLocation) { super(1); this.this$0 = channelSelector; this.$guildId = j; this.$channelId = j2; this.$peekParent = l; this.$analyticsLocation = selectedChannelAnalyticsLocation; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Channel channel) { invoke(channel); return Unit.a; } /* JADX WARNING: Code restructure failed: missing block: B:3:0x001d, code lost: if (com.discord.api.channel.ChannelUtils.E(r10) == false) goto L_0x001f; */ /* JADX WARNING: Removed duplicated region for block: B:10:0x0030 */ /* JADX WARNING: Removed duplicated region for block: B:13:0x0040 */ /* JADX WARNING: Removed duplicated region for block: B:15:? A[RETURN, SYNTHETIC] */ /* JADX WARNING: Removed duplicated region for block: B:9:0x002d */ public final void invoke(Channel channel) { boolean z2; if (!TextInVoiceFeatureFlag.Companion.getINSTANCE().isEnabled(Long.valueOf(channel.f()))) { m.checkNotNullExpressionValue(channel, "channel"); } m.checkNotNullExpressionValue(channel, "channel"); if (!ChannelUtils.z(channel)) { z2 = false; ChannelSelector.access$gotoChannel(this.this$0, this.$guildId, !z2 ? this.$guildId : this.$channelId, this.$peekParent, this.$analyticsLocation); if (!z2) { this.this$0.getStream().getVoiceChannelSelected$app_productionBetaRelease().selectVoiceChannel(this.$channelId); return; } return; } z2 = true; ChannelSelector.access$gotoChannel(this.this$0, this.$guildId, !z2 ? this.$guildId : this.$channelId, this.$peekParent, this.$analyticsLocation); if (!z2) { } } }