59 lines
3.3 KiB
Java
59 lines
3.3 KiB
Java
package com.discord.widgets.chat.input;
|
|
|
|
import com.discord.widgets.chat.MessageContent;
|
|
import com.discord.widgets.chat.MessageManager;
|
|
import com.discord.widgets.chat.input.ChatInputViewModel;
|
|
import d0.z.d.o;
|
|
import java.util.ArrayList;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function2;
|
|
/* compiled from: ChatInputViewModel.kt */
|
|
public final class ChatInputViewModel$sendMessage$sendMessage$1 extends o implements Function1<Long, Unit> {
|
|
public final /* synthetic */ ArrayList $attachments;
|
|
public final /* synthetic */ float $currentFileSizeMB;
|
|
public final /* synthetic */ boolean $hasGif;
|
|
public final /* synthetic */ boolean $hasImage;
|
|
public final /* synthetic */ boolean $hasVideo;
|
|
public final /* synthetic */ ChatInputViewModel.ViewState.Loaded $loadedViewState;
|
|
public final /* synthetic */ float $maxAttachmentSizeMB;
|
|
public final /* synthetic */ MessageContent $messageContent;
|
|
public final /* synthetic */ MessageManager $messageManager;
|
|
public final /* synthetic */ Function0 $messageResendCompressedHandler;
|
|
public final /* synthetic */ Function2 $messageSendResultHandler;
|
|
public final /* synthetic */ Function2 $onMessageTooLong;
|
|
public final /* synthetic */ Function1 $onValidationResult;
|
|
public final /* synthetic */ ChatInputViewModel this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public ChatInputViewModel$sendMessage$sendMessage$1(ChatInputViewModel chatInputViewModel, MessageManager messageManager, MessageContent messageContent, float f, ChatInputViewModel.ViewState.Loaded loaded, ArrayList arrayList, Function2 function2, Function2 function22, float f2, boolean z2, boolean z3, boolean z4, Function0 function0, Function1 function1) {
|
|
super(1);
|
|
this.this$0 = chatInputViewModel;
|
|
this.$messageManager = messageManager;
|
|
this.$messageContent = messageContent;
|
|
this.$currentFileSizeMB = f;
|
|
this.$loadedViewState = loaded;
|
|
this.$attachments = arrayList;
|
|
this.$messageSendResultHandler = function2;
|
|
this.$onMessageTooLong = function22;
|
|
this.$maxAttachmentSizeMB = f2;
|
|
this.$hasImage = z2;
|
|
this.$hasVideo = z3;
|
|
this.$hasGif = z4;
|
|
this.$messageResendCompressedHandler = function0;
|
|
this.$onValidationResult = function1;
|
|
}
|
|
|
|
/* 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(Long l) {
|
|
invoke(l.longValue());
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(long j) {
|
|
this.$onValidationResult.invoke(Boolean.valueOf(MessageManager.sendMessage$default(this.$messageManager, this.$messageContent.getTextContent(), this.$messageContent.getMentionedUsers(), new MessageManager.AttachmentsRequest(this.$currentFileSizeMB, this.$loadedViewState.getMaxFileSizeMB(), this.$attachments), Long.valueOf(j), null, false, this.$onMessageTooLong, new ChatInputViewModel$sendMessage$sendMessage$1$synchronousValidationSucceeded$2(this), new ChatInputViewModel$sendMessage$sendMessage$1$synchronousValidationSucceeded$1(this), 48, null)));
|
|
}
|
|
}
|