apkfuckery/com.discord/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configu...

774 lines
27 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;
2020-07-25 00:57:58 +00:00
.super Lj0/n/c/i;
2020-05-17 12:40:10 +00:00
.source "WidgetChatInputSend.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/widgets/chat/input/WidgetChatInputSend;->configureSendListeners(Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/widgets/chat/input/WidgetChatInputAttachments;Landroid/view/View;Landroid/view/View;Lcom/discord/widgets/chat/input/WidgetChatInputModel;Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
2020-07-25 00:57:58 +00:00
"Lj0/n/c/i;",
2020-05-17 12:40:10 +00:00
"Lkotlin/jvm/functions/Function1<",
"Ljava/util/List<",
"+",
"Lcom/lytefast/flexinput/model/Attachment<",
"*>;>;",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
# instance fields
.field public final synthetic $chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
.field public final synthetic $flexInputViewModel:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
2020-07-08 16:44:49 +00:00
.field public final synthetic $messageManager:Lcom/discord/widgets/chat/MessageManager;
2020-05-17 12:40:10 +00:00
.field public final synthetic $model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
.field public final synthetic $weakListener:Ljava/lang/ref/WeakReference;
# direct methods
2020-07-08 16:44:49 +00:00
.method public constructor <init>(Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/widgets/chat/input/WidgetChatInputModel;Ljava/lang/ref/WeakReference;Lcom/discord/widgets/chat/MessageManager;Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;)V
2020-05-17 12:40:10 +00:00
.locals 0
iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
iput-object p2, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
iput-object p3, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$weakListener:Ljava/lang/ref/WeakReference;
2020-07-08 16:44:49 +00:00
iput-object p4, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$messageManager:Lcom/discord/widgets/chat/MessageManager;
iput-object p5, p0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$flexInputViewModel:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
2020-05-17 12:40:10 +00:00
const/4 p1, 0x1
2020-07-25 00:57:58 +00:00
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Ljava/util/List;
invoke-virtual {p0, p1}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->invoke(Ljava/util/List;)Z
move-result p1
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p1
return-object p1
.end method
.method public final invoke(Ljava/util/List;)Z
2020-08-07 17:54:15 +00:00
.locals 24
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Lcom/lytefast/flexinput/model/Attachment<",
"*>;>;)Z"
}
.end annotation
move-object/from16 v0, p0
move-object/from16 v1, p1
2020-08-07 17:54:15 +00:00
if-eqz v1, :cond_12
2020-05-17 12:40:10 +00:00
iget-object v2, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
invoke-virtual {v2}, Lcom/discord/widgets/chat/input/WidgetChatInputEditText;->getMatchedContentWithMetaData()Lcom/discord/models/domain/ModelMessage$Content;
move-result-object v2
2020-08-07 17:54:15 +00:00
invoke-interface/range {p1 .. p1}, Ljava/util/Collection;->isEmpty()Z
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result v3
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
const/4 v4, 0x1
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
const-string v5, "chatInput.context"
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
const/4 v6, 0x0
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
if-eqz v3, :cond_1
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
:cond_0
const/4 v13, 0x0
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
goto :goto_0
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
:cond_1
invoke-interface/range {p1 .. p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v3
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
:cond_2
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result v7
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
if-eqz v7, :cond_0
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v7
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
check-cast v7, Lcom/lytefast/flexinput/model/Attachment;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
iget-object v8, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v8}, Landroid/widget/EditText;->getContext()Landroid/content/Context;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v8
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v8, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v8
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v7, v8}, Lcom/discord/utilities/attachments/AttachmentUtilsKt;->isImage(Lcom/lytefast/flexinput/model/Attachment;Landroid/content/ContentResolver;)Z
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result v7
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
if-eqz v7, :cond_2
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
const/4 v13, 0x1
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:goto_0
invoke-interface/range {p1 .. p1}, Ljava/util/Collection;->isEmpty()Z
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result v3
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
if-eqz v3, :cond_4
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
:cond_3
const/4 v14, 0x0
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
goto :goto_1
:cond_4
invoke-interface/range {p1 .. p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:cond_5
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result v7
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
if-eqz v7, :cond_3
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v7
check-cast v7, Lcom/lytefast/flexinput/model/Attachment;
iget-object v8, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
invoke-virtual {v8}, Landroid/widget/EditText;->getContext()Landroid/content/Context;
move-result-object v8
invoke-static {v8, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v8
invoke-static {v7, v8}, Lcom/discord/utilities/attachments/AttachmentUtilsKt;->isVideo(Lcom/lytefast/flexinput/model/Attachment;Landroid/content/ContentResolver;)Z
move-result v7
if-eqz v7, :cond_5
const/4 v14, 0x1
:goto_1
new-instance v3, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$messageSendResultHandler$1;
invoke-direct {v3, v0, v1, v13, v14}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$messageSendResultHandler$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;Ljava/util/List;ZZ)V
sget-object v7, Lcom/discord/widgets/chat/input/gifpicker/GifPickerFeatureFlag;->Companion:Lcom/discord/widgets/chat/input/gifpicker/GifPickerFeatureFlag$Companion;
invoke-virtual {v7}, Lcom/discord/widgets/chat/input/gifpicker/GifPickerFeatureFlag$Companion;->getINSTANCE()Lcom/discord/widgets/chat/input/gifpicker/GifPickerFeatureFlag;
move-result-object v7
invoke-virtual {v7}, Lcom/discord/widgets/chat/input/gifpicker/GifPickerFeatureFlag;->isEnabled()Z
move-result v7
const-string v8, "chatInput.context.contentResolver"
const/16 v9, 0xa
const-string v10, "messageData"
const-string v11, "messageData.content"
if-eqz v7, :cond_8
new-instance v4, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$onMessageTooLong$1;
invoke-direct {v4, v0}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$onMessageTooLong$1;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;)V
iget-object v7, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
invoke-virtual {v7}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isEditing()Z
move-result v7
if-eqz v7, :cond_6
iget-object v7, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
iget-object v7, v7, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
if-eqz v7, :cond_6
iget-object v15, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$messageManager:Lcom/discord/widgets/chat/MessageManager;
invoke-virtual {v7}, Lcom/discord/stores/StoreChat$EditingMessage;->getMessage()Lcom/discord/models/domain/ModelMessage;
move-result-object v1
invoke-virtual {v1}, Lcom/discord/models/domain/ModelMessage;->getId()J
move-result-wide v16
iget-object v1, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
iget-object v1, v1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
invoke-virtual {v1}, Lcom/discord/stores/StoreChat$EditingMessage;->getMessage()Lcom/discord/models/domain/ModelMessage;
move-result-object v1
invoke-virtual {v1}, Lcom/discord/models/domain/ModelMessage;->getChannelId()J
move-result-wide v18
2020-07-08 16:44:49 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v2, v10}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
move-result-object v1
invoke-static {v1, v11}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-object/from16 v20, v1
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-object/from16 v21, v4
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual/range {v15 .. v21}, Lcom/discord/widgets/chat/MessageManager;->editMessage(JJLjava/lang/String;Lkotlin/jvm/functions/Function2;)Z
2020-07-08 16:44:49 +00:00
move-result v1
2020-08-07 17:54:15 +00:00
goto/16 :goto_3
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:cond_6
new-instance v7, Ljava/util/ArrayList;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v1, v9}, Lf/n/a/k/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result v9
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-direct {v7, v9}, Ljava/util/ArrayList;-><init>(I)V
2020-07-08 16:44:49 +00:00
invoke-interface/range {p1 .. p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2020-08-07 17:54:15 +00:00
move-result-object v9
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:goto_2
invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v12
2020-08-07 17:54:15 +00:00
if-eqz v12, :cond_7
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
move-result-object v12
check-cast v12, Lcom/lytefast/flexinput/model/Attachment;
invoke-virtual {v12}, Lcom/lytefast/flexinput/model/Attachment;->getUri()Landroid/net/Uri;
move-result-object v12
2020-08-07 17:54:15 +00:00
iget-object v15, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v15}, Landroid/widget/EditText;->getContext()Landroid/content/Context;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v15
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v15, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v15}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v15
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v15, v8}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v12, v15}, Lcom/discord/utilities/rest/SendUtilsKt;->computeFileSizeMegabytes(Landroid/net/Uri;Landroid/content/ContentResolver;)F
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v12
invoke-static {v12}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v12
2020-08-07 17:54:15 +00:00
invoke-interface {v7, v12}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:cond_7
invoke-static {v7}, Lj0/i/l;->sumOfFloat(Ljava/lang/Iterable;)F
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v5
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-object v15, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$messageManager:Lcom/discord/widgets/chat/MessageManager;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v2, v10}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v7
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v7, v11}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getMentions()Ljava/util/List;
2020-08-07 17:54:15 +00:00
move-result-object v17
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
new-instance v2, Lcom/discord/widgets/chat/MessageManager$AttachmentsRequest;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
iget-object v8, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
iget v8, v8, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->maxFileSizeMB:I
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
new-instance v9, Ljava/util/ArrayList;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-direct {v9, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-direct {v2, v5, v8, v9}, Lcom/discord/widgets/chat/MessageManager$AttachmentsRequest;-><init>(FILjava/util/List;)V
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
iget-object v5, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-wide v8, v5, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->channelId:J
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v19
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
new-instance v5, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$synchronousValidationSucceeded$1;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-direct {v5, v3}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$synchronousValidationSucceeded$1;-><init>(Lkotlin/jvm/functions/Function2;)V
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
new-instance v3, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$synchronousValidationSucceeded$2;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-direct {v3, v0, v1, v13, v14}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$synchronousValidationSucceeded$2;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;Ljava/util/List;ZZ)V
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-object/from16 v16, v7
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-object/from16 v18, v2
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-object/from16 v20, v4
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-object/from16 v21, v3
move-object/from16 v22, v5
invoke-virtual/range {v15 .. v22}, Lcom/discord/widgets/chat/MessageManager;->sendMessage(Ljava/lang/String;Ljava/util/List;Lcom/discord/widgets/chat/MessageManager$AttachmentsRequest;Ljava/lang/Long;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function1;)Z
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:goto_3
if-nez v1, :cond_11
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
return v6
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
:cond_8
invoke-static {v2, v10}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
2020-08-07 17:54:15 +00:00
move-result-object v7
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v7, v11}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-interface {v7}, Ljava/lang/CharSequence;->length()I
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-result v7
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
if-nez v7, :cond_9
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
goto :goto_4
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
:cond_9
2020-07-08 16:44:49 +00:00
const/4 v4, 0x0
2020-08-07 17:54:15 +00:00
:goto_4
if-eqz v4, :cond_a
2020-07-08 16:44:49 +00:00
invoke-interface/range {p1 .. p1}, Ljava/util/List;->isEmpty()Z
move-result v4
2020-08-07 17:54:15 +00:00
if-eqz v4, :cond_a
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
return v6
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
:cond_a
2020-07-08 16:44:49 +00:00
new-instance v4, Ljava/util/ArrayList;
2020-08-07 17:54:15 +00:00
invoke-static {v1, v9}, Lf/n/a/k/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
2020-05-17 12:40:10 +00:00
move-result v7
2020-07-08 16:44:49 +00:00
invoke-direct {v4, v7}, Ljava/util/ArrayList;-><init>(I)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface/range {p1 .. p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2020-05-17 12:40:10 +00:00
move-result-object v7
2020-08-07 17:54:15 +00:00
:goto_5
2020-07-08 16:44:49 +00:00
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result v9
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
if-eqz v9, :cond_b
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v9
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
check-cast v9, Lcom/lytefast/flexinput/model/Attachment;
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v9}, Lcom/lytefast/flexinput/model/Attachment;->getUri()Landroid/net/Uri;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v9
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-object v10, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v10}, Landroid/widget/EditText;->getContext()Landroid/content/Context;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v10
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v10, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v10}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v10
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v10, v8}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v9, v10}, Lcom/discord/utilities/rest/SendUtilsKt;->computeFileSizeMegabytes(Landroid/net/Uri;Landroid/content/ContentResolver;)F
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result v9
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v9}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v9
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-interface {v4, v9}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
goto :goto_5
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
:cond_b
2020-07-25 00:57:58 +00:00
invoke-static {v4}, Lj0/i/l;->sumOfFloat(Ljava/lang/Iterable;)F
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result v10
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-object v4, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget v4, v4, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->maxFileSizeMB:I
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
int-to-float v4, v4
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
const-string v5, "model.me"
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
cmpl-float v4, v10, v4
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
if-ltz v4, :cond_d
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-object v2, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$weakListener:Ljava/lang/ref/WeakReference;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-object v8, v2
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
check-cast v8, Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;
if-eqz v8, :cond_c
2020-05-17 12:40:10 +00:00
iget-object v2, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2020-08-07 17:54:15 +00:00
iget v9, v2, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->maxFileSizeMB:I
2020-05-17 12:40:10 +00:00
iget-object v2, v2, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->me:Lcom/discord/models/domain/ModelUser;
2020-08-07 17:54:15 +00:00
invoke-static {v2, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUser;->isPremium()Z
2020-08-07 17:54:15 +00:00
move-result v11
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-interface/range {p1 .. p1}, Ljava/util/List;->size()I
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result v12
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-interface/range {v8 .. v14}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;->onFilesTooLarge(IFZIZZ)V
:cond_c
return v6
:cond_d
2020-05-17 12:40:10 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
2020-07-08 16:44:49 +00:00
move-result-object v4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v4}, Ljava/lang/String;->length()I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v4
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
const/16 v7, 0x7d0
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
if-le v4, v7, :cond_f
2020-05-17 12:40:10 +00:00
iget-object v1, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$weakListener:Ljava/lang/ref/WeakReference;
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;
2020-08-07 17:54:15 +00:00
if-eqz v1, :cond_e
2020-05-17 12:40:10 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v2
2020-08-07 17:54:15 +00:00
invoke-interface {v1, v2, v7}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;->onMessageTooLong(II)V
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:cond_e
return v6
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:cond_f
2020-07-08 16:44:49 +00:00
iget-object v4, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v4}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isEditing()Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v4
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
if-eqz v4, :cond_10
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v4, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v4, v4, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
if-eqz v4, :cond_10
2020-05-17 12:40:10 +00:00
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getMessages()Lcom/discord/stores/StoreMessages;
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
iget-object v1, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
iget-object v1, v1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
invoke-virtual {v1}, Lcom/discord/stores/StoreChat$EditingMessage;->getMessage()Lcom/discord/models/domain/ModelMessage;
move-result-object v1
invoke-virtual {v1}, Lcom/discord/models/domain/ModelMessage;->getId()J
2020-07-08 16:44:49 +00:00
move-result-wide v4
2020-05-17 12:40:10 +00:00
iget-object v1, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
iget-object v1, v1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
invoke-virtual {v1}, Lcom/discord/stores/StoreChat$EditingMessage;->getMessage()Lcom/discord/models/domain/ModelMessage;
move-result-object v1
invoke-virtual {v1}, Lcom/discord/models/domain/ModelMessage;->getChannelId()J
2020-07-08 16:44:49 +00:00
move-result-wide v6
2020-05-17 12:40:10 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
2020-07-08 16:44:49 +00:00
move-result-object v8
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v8, v11}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual/range {v3 .. v8}, Lcom/discord/stores/StoreMessages;->editMessage(JJLjava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
goto :goto_6
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:cond_10
2020-07-08 16:44:49 +00:00
sget-object v4, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v4}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v4
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-object v6, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-wide v6, v6, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->channelId:J
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v4, v6, v7}, Lcom/discord/stores/StoreGuilds;->observeFromChannelId(J)Lrx/Observable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v4
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
sget-object v6, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-virtual {v6}, Lcom/discord/stores/StoreStream$Companion;->getMessages()Lcom/discord/stores/StoreMessages;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
move-result-object v12
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-object v6, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-wide v13, v6, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->channelId:J
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
iget-object v15, v6, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->me:Lcom/discord/models/domain/ModelUser;
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v15, v5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
2020-08-07 17:54:15 +00:00
move-result-object v5
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
invoke-static {v5, v11}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getMentions()Ljava/util/List;
2020-08-07 17:54:15 +00:00
move-result-object v17
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v2, Ljava/util/ArrayList;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v2, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/16 v19, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/16 v20, 0x0
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
const/16 v21, 0x0
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
const/16 v22, 0xe0
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
const/16 v23, 0x0
2020-07-08 16:44:49 +00:00
2020-08-07 17:54:15 +00:00
move-object/from16 v16, v5
move-object/from16 v18, v2
invoke-static/range {v12 .. v23}, Lcom/discord/stores/StoreMessages;->sendMessage$default(Lcom/discord/stores/StoreMessages;JLcom/discord/models/domain/ModelUser;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Lcom/discord/models/domain/ModelApplication;Lcom/discord/models/domain/activity/ModelActivity;Lcom/discord/models/domain/ModelMessage$Activity;ILjava/lang/Object;)Lrx/Observable;
2020-05-17 12:40:10 +00:00
move-result-object v1
sget-object v2, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1;->INSTANCE:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1;
2020-07-08 16:44:49 +00:00
invoke-static {v4, v1, v2}, Lrx/Observable;->j(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
2020-05-17 12:40:10 +00:00
move-result-object v1
2020-07-08 16:44:49 +00:00
const-string v2, "Observable\n \u2026 guild to messageResult }"
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v1, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-static {v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui(Lrx/Observable;)Lrx/Observable;
2020-07-08 16:44:49 +00:00
move-result-object v4
2020-05-17 12:40:10 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->INSTANCE:Lcom/discord/widgets/chat/input/WidgetChatInputSend;
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
2020-07-08 16:44:49 +00:00
move-result-object v5
2020-05-17 12:40:10 +00:00
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
2020-07-08 16:44:49 +00:00
const/4 v9, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v10, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$2;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v10, v3}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$2;-><init>(Lkotlin/jvm/functions/Function2;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/16 v11, 0x1e
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v12, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static/range {v4 .. v12}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-08-07 17:54:15 +00:00
:cond_11
:goto_6
2020-07-08 16:44:49 +00:00
sget-object v13, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->INSTANCE:Lcom/discord/widgets/chat/input/WidgetChatInputSend;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v14, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v15, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$flexInputViewModel:Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/16 v17, 0x4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/16 v18, 0x0
invoke-static/range {v13 .. v18}, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->clearInput$default(Lcom/discord/widgets/chat/input/WidgetChatInputSend;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/lytefast/flexinput/viewmodel/FlexInputViewModel;Ljava/lang/Boolean;ILjava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
move-result v1
return v1
2020-08-07 17:54:15 +00:00
:cond_12
2020-05-17 12:40:10 +00:00
const-string v1, "attachments"
2020-07-25 00:57:58 +00:00
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 v1, 0x0
throw v1
.end method