package com.discord.stores; import com.discord.stores.StoreMessages; import com.discord.utilities.messagesend.MessageResult; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function2; import rx.Emitter; /* compiled from: StoreMessages.kt */ public final class StoreMessages$sendMessage$7$request$1 extends o implements Function2 { public final /* synthetic */ Emitter $emitter; public final /* synthetic */ StoreMessages$sendMessage$7 this$0; /* compiled from: StoreMessages.kt */ /* renamed from: com.discord.stores.StoreMessages$sendMessage$7$request$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ StoreMessages$sendMessage$7$request$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreMessages$sendMessage$7$request$1 storeMessages$sendMessage$7$request$1) { super(0); this.this$0 = storeMessages$sendMessage$7$request$1; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { StoreMessages.Companion.access$cancelBackgroundSendingWork(StoreMessages.Companion, StoreMessages.access$getContext$p(this.this$0.this$0.this$0)); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreMessages$sendMessage$7$request$1(StoreMessages$sendMessage$7 storeMessages$sendMessage$7, Emitter emitter) { super(2); this.this$0 = storeMessages$sendMessage$7; this.$emitter = emitter; } /* 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, java.lang.Object] */ @Override // kotlin.jvm.functions.Function2 public /* bridge */ /* synthetic */ Unit invoke(MessageResult messageResult, Boolean bool) { invoke(messageResult, bool.booleanValue()); return Unit.a; } public final void invoke(MessageResult messageResult, boolean z2) { m.checkNotNullParameter(messageResult, "messageResult"); this.$emitter.onNext(messageResult); this.$emitter.onCompleted(); if (z2) { StoreMessages.access$getDispatcher$p(this.this$0.this$0).schedule(new AnonymousClass1(this)); } } }