package com.discord.utilities.intent; import android.content.Context; import com.airbnb.lottie.parser.AnimatableValueParser; import com.discord.api.channel.Channel; import com.discord.widgets.voice.fullscreen.WidgetCallFullscreen; import d0.z.d.m; import d0.z.d.o; import java.lang.ref.WeakReference; import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: RouteHandlers.kt */ public final class RouteHandlers$voiceConnect$1 extends o implements Function1 { public final /* synthetic */ long $channelId; public final /* synthetic */ boolean $isServicePermissionDeniedRedirect; public final /* synthetic */ WeakReference $weakContext; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public RouteHandlers$voiceConnect$1(WeakReference weakReference, long j, boolean z2) { super(1); this.$weakContext = weakReference; this.$channelId = j; this.$isServicePermissionDeniedRedirect = z2; } /* 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; } public final void invoke(Channel channel) { Context context = (Context) this.$weakContext.get(); if (context != null) { m.checkNotNullExpressionValue(context, "weakContext.get() ?: return@appSubscribe"); m.checkNotNullExpressionValue(channel, "channel"); if (!AnimatableValueParser.s1(channel)) { WidgetCallFullscreen.Companion.launch$default(WidgetCallFullscreen.Companion, context, this.$channelId, this.$isServicePermissionDeniedRedirect, null, null, 24, null); } } } }