67 lines
3.9 KiB
Java
67 lines
3.9 KiB
Java
package com.discord.widgets.chat.input;
|
|
|
|
import android.content.Context;
|
|
import com.discord.utilities.rest.SendUtils;
|
|
import com.discord.widgets.chat.MessageManager;
|
|
import com.discord.widgets.chat.input.ChatInputViewModel;
|
|
import com.discord.widgets.chat.input.models.ApplicationCommandData;
|
|
import com.lytefast.flexinput.model.Attachment;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.List;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: ChatInputViewModel.kt */
|
|
public final class ChatInputViewModel$sendCommand$commandResendCompressedHandler$1 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ ApplicationCommandData $applicationCommandData;
|
|
public final /* synthetic */ ChatInputViewModel.AttachmentContext $attachmentsContext;
|
|
public final /* synthetic */ boolean $autocomplete;
|
|
public final /* synthetic */ Context $context;
|
|
public final /* synthetic */ MessageManager $messageManager;
|
|
public final /* synthetic */ ChatInputViewModel this$0;
|
|
|
|
/* compiled from: ChatInputViewModel.kt */
|
|
/* renamed from: com.discord.widgets.chat.input.ChatInputViewModel$sendCommand$commandResendCompressedHandler$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<List<? extends Attachment<?>>, Unit> {
|
|
public final /* synthetic */ ChatInputViewModel$sendCommand$commandResendCompressedHandler$1 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(ChatInputViewModel$sendCommand$commandResendCompressedHandler$1 chatInputViewModel$sendCommand$commandResendCompressedHandler$1) {
|
|
super(1);
|
|
this.this$0 = chatInputViewModel$sendCommand$commandResendCompressedHandler$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(List<? extends Attachment<?>> list) {
|
|
invoke(list);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(List<? extends Attachment<?>> list) {
|
|
m.checkNotNullParameter(list, "compressedAttachments");
|
|
ChatInputViewModel$sendCommand$commandResendCompressedHandler$1 chatInputViewModel$sendCommand$commandResendCompressedHandler$1 = this.this$0;
|
|
ChatInputViewModel.sendCommand$default(chatInputViewModel$sendCommand$commandResendCompressedHandler$1.this$0, chatInputViewModel$sendCommand$commandResendCompressedHandler$1.$context, chatInputViewModel$sendCommand$commandResendCompressedHandler$1.$messageManager, chatInputViewModel$sendCommand$commandResendCompressedHandler$1.$applicationCommandData, list, chatInputViewModel$sendCommand$commandResendCompressedHandler$1.$autocomplete, true, null, 64, null);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public ChatInputViewModel$sendCommand$commandResendCompressedHandler$1(ChatInputViewModel chatInputViewModel, Context context, ChatInputViewModel.AttachmentContext attachmentContext, MessageManager messageManager, ApplicationCommandData applicationCommandData, boolean z2) {
|
|
super(0);
|
|
this.this$0 = chatInputViewModel;
|
|
this.$context = context;
|
|
this.$attachmentsContext = attachmentContext;
|
|
this.$messageManager = messageManager;
|
|
this.$applicationCommandData = applicationCommandData;
|
|
this.$autocomplete = z2;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
SendUtils.INSTANCE.compressImageAttachments(this.$context, this.$attachmentsContext.getAttachments(), new AnonymousClass1(this));
|
|
}
|
|
}
|