discord-jadx/app/src/main/java/com/discord/widgets/chat/input/ChatInputViewModel$sendComm...

36 lines
2.0 KiB
Java

package com.discord.widgets.chat.input;
import com.discord.widgets.chat.input.ChatInputViewModel;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import rx.subjects.PublishSubject;
/* compiled from: ChatInputViewModel.kt */
public final class ChatInputViewModel$sendCommand$validated$3 extends o implements Function2<Integer, Boolean, Unit> {
public final /* synthetic */ ChatInputViewModel.AttachmentContext $attachmentsContext;
public final /* synthetic */ Function0 $commandResendCompressedHandler;
public final /* synthetic */ ChatInputViewModel this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public ChatInputViewModel$sendCommand$validated$3(ChatInputViewModel chatInputViewModel, ChatInputViewModel.AttachmentContext attachmentContext, Function0 function0) {
super(2);
this.this$0 = chatInputViewModel;
this.$attachmentsContext = attachmentContext;
this.$commandResendCompressedHandler = function0;
}
/* 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(Integer num, Boolean bool) {
invoke(num.intValue(), bool.booleanValue());
return Unit.a;
}
public final void invoke(int i, boolean z2) {
PublishSubject access$getEventSubject$p = ChatInputViewModel.access$getEventSubject$p(this.this$0);
access$getEventSubject$p.j.onNext(new ChatInputViewModel.Event.FilesTooLarge(i, this.$attachmentsContext.getCurrentFileSizeMB(), this.$attachmentsContext.getMaxAttachmentSizeMB(), z2, this.$attachmentsContext.getAttachments(), this.$attachmentsContext.getHasImage(), this.$attachmentsContext.getHasVideo(), this.$attachmentsContext.getHasGif(), this.$commandResendCompressedHandler));
}
}