66 lines
3.7 KiB
Java
66 lines
3.7 KiB
Java
package com.discord.widgets.chat.input;
|
|
|
|
import android.content.Context;
|
|
import com.discord.utilities.rest.SendUtils;
|
|
import com.discord.widgets.chat.MessageContent;
|
|
import com.discord.widgets.chat.MessageManager;
|
|
import com.lytefast.flexinput.model.Attachment;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.ArrayList;
|
|
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$sendMessage$messageResendCompressedHandler$1 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ ArrayList $attachments;
|
|
public final /* synthetic */ Context $context;
|
|
public final /* synthetic */ MessageContent $messageContent;
|
|
public final /* synthetic */ MessageManager $messageManager;
|
|
public final /* synthetic */ Function1 $onValidationResult;
|
|
public final /* synthetic */ ChatInputViewModel this$0;
|
|
|
|
/* compiled from: ChatInputViewModel.kt */
|
|
/* renamed from: com.discord.widgets.chat.input.ChatInputViewModel$sendMessage$messageResendCompressedHandler$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<List<? extends Attachment<?>>, Unit> {
|
|
public final /* synthetic */ ChatInputViewModel$sendMessage$messageResendCompressedHandler$1 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(ChatInputViewModel$sendMessage$messageResendCompressedHandler$1 chatInputViewModel$sendMessage$messageResendCompressedHandler$1) {
|
|
super(1);
|
|
this.this$0 = chatInputViewModel$sendMessage$messageResendCompressedHandler$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$sendMessage$messageResendCompressedHandler$1 chatInputViewModel$sendMessage$messageResendCompressedHandler$1 = this.this$0;
|
|
chatInputViewModel$sendMessage$messageResendCompressedHandler$1.this$0.sendMessage(chatInputViewModel$sendMessage$messageResendCompressedHandler$1.$context, chatInputViewModel$sendMessage$messageResendCompressedHandler$1.$messageManager, chatInputViewModel$sendMessage$messageResendCompressedHandler$1.$messageContent, list, true, chatInputViewModel$sendMessage$messageResendCompressedHandler$1.$onValidationResult);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public ChatInputViewModel$sendMessage$messageResendCompressedHandler$1(ChatInputViewModel chatInputViewModel, Context context, ArrayList arrayList, MessageManager messageManager, MessageContent messageContent, Function1 function1) {
|
|
super(0);
|
|
this.this$0 = chatInputViewModel;
|
|
this.$context = context;
|
|
this.$attachments = arrayList;
|
|
this.$messageManager = messageManager;
|
|
this.$messageContent = messageContent;
|
|
this.$onValidationResult = function1;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
SendUtils.INSTANCE.compressImageAttachments(this.$context, this.$attachments, new AnonymousClass1(this));
|
|
}
|
|
}
|