package com.discord.stores; import android.content.Context; import com.discord.models.domain.ModelCall; import com.discord.utilities.rest.RestAPI; import com.discord.utilities.rx.ObservableExtensionsKt; import d0.z.d.o; import java.util.List; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; /* compiled from: StoreCalls.kt */ public final class StoreCalls$stopRinging$1 extends o implements Function1 { public final /* synthetic */ long $channelId; public final /* synthetic */ List $recipients; public final /* synthetic */ StoreCalls this$0; /* compiled from: StoreCalls.kt */ /* renamed from: com.discord.stores.StoreCalls$stopRinging$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1 { public static final AnonymousClass1 INSTANCE = new AnonymousClass1(); public AnonymousClass1() { super(1); } /* 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(Void r1) { invoke(r1); return Unit.a; } public final void invoke(Void r1) { } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreCalls$stopRinging$1(StoreCalls storeCalls, long j, List list) { super(1); this.this$0 = storeCalls; this.$channelId = j; this.$recipients = list; } /* 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(ModelCall modelCall) { invoke(modelCall); return Unit.a; } public final void invoke(ModelCall modelCall) { if (modelCall == null) { StoreCalls.access$getStream$p(this.this$0).getCallsIncoming$app_productionBetaRelease().removeIncomingCall(this.$channelId); } 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); } } }