apkfuckery/com.discord/smali/com/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1.smali

435 lines
15 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;
2019-10-09 23:16:36 +00:00
.super Lkotlin/jvm/internal/m;
2019-07-24 11:27:29 +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;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
2019-10-09 23:16:36 +00:00
"Lkotlin/jvm/internal/m;",
2019-07-24 11:27:29 +00:00
"Lkotlin/jvm/functions/Function1<",
"Ljava/util/List<",
"+",
"Lcom/lytefast/flexinput/model/Attachment<",
"*>;>;",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
# instance fields
.field final synthetic $chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
.field final synthetic $model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
.field final synthetic $weakListener:Ljava/lang/ref/WeakReference;
# direct methods
.method constructor <init>(Lcom/discord/widgets/chat/input/WidgetChatInputEditText;Lcom/discord/widgets/chat/input/WidgetChatInputModel;Ljava/lang/ref/WeakReference;)V
.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;
const/4 p1, 0x1
2019-10-09 23:16:36 +00:00
invoke-direct {p0, p1}, Lkotlin/jvm/internal/m;-><init>(I)V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
.method public final 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
2019-10-17 03:51:45 +00:00
.locals 20
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Lcom/lytefast/flexinput/model/Attachment<",
"*>;>;)Z"
}
.end annotation
2019-10-17 03:51:45 +00:00
move-object/from16 v0, p0
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-object/from16 v1, p1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const-string v2, "attachments"
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v1, v2}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v2, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v2}, Lcom/discord/widgets/chat/input/WidgetChatInputEditText;->getMatchedContentWithMetaData()Lcom/discord/models/domain/ModelMessage$Content;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const-string v3, "messageData"
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v2, v3}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const-string v4, "messageData.content"
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v3, v4}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v3, Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-interface {v3}, Ljava/lang/CharSequence;->length()I
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result v3
const/4 v5, 0x0
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
if-nez v3, :cond_0
const/4 v3, 0x1
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_0
2019-10-17 03:51:45 +00:00
const/4 v3, 0x0
2019-07-24 11:27:29 +00:00
:goto_0
2019-10-17 03:51:45 +00:00
if-eqz v3, :cond_1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-interface/range {p1 .. p1}, Ljava/util/List;->isEmpty()Z
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result v3
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
if-eqz v3, :cond_1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
return v5
2019-07-24 11:27:29 +00:00
:cond_1
2019-10-17 03:51:45 +00:00
move-object v3, v1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v3, Ljava/lang/Iterable;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
new-instance v6, Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const/16 v7, 0xa
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v3, v7}, Lkotlin/a/m;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result v7
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-direct {v6, v7}, Ljava/util/ArrayList;-><init>(I)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v6, Ljava/util/Collection;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
:goto_1
2019-10-17 03:51:45 +00:00
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result v7
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
if-eqz v7, :cond_2
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v7, Lcom/lytefast/flexinput/model/Attachment;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v7}, Lcom/lytefast/flexinput/model/Attachment;->getUri()Landroid/net/Uri;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v8, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v8}, Lcom/discord/widgets/chat/input/WidgetChatInputEditText;->getContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v8
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const-string v9, "chatInput.context"
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v8, v9}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v8
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const-string v9, "chatInput.context.contentResolver"
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v8, v9}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v7, v8}, Lcom/discord/utilities/rest/SendUtilsKt;->computeFileSizeMegabytes(Landroid/net/Uri;Landroid/content/ContentResolver;)F
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result v7
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v7}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-interface {v6, v7}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
goto :goto_1
:cond_2
2019-10-17 03:51:45 +00:00
check-cast v6, Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v6, Ljava/lang/Iterable;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v6}, Lkotlin/a/m;->sumOfFloat(Ljava/lang/Iterable;)F
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result v3
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v6, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget v6, v6, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->maxFileSizeMB:I
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
int-to-float v6, v6
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const-string v7, "model.me"
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
cmpl-float v6, v3, v6
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
if-ltz v6, :cond_4
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v1, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$weakListener:Ljava/lang/ref/WeakReference;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v1, Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
if-eqz v1, :cond_3
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v2, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget v2, v2, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->maxFileSizeMB:I
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v4, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v4, v4, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->me:Lcom/discord/models/domain/ModelUser;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v4, v7}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v4}, Lcom/discord/models/domain/ModelUser;->isPremium()Z
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result v4
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-interface {v1, v2, v3, v4}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$Listener;->onFilesTooLarge(IFZ)V
2019-07-24 11:27:29 +00:00
:cond_3
2019-10-17 03:51:45 +00:00
return v5
2019-07-24 11:27:29 +00:00
:cond_4
2019-10-17 03:51:45 +00:00
iget-object v3, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v3}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isEditing()Z
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result v3
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
if-eqz v3, :cond_5
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v3, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-08-14 23:59:34 +00:00
2019-10-17 03:51:45 +00:00
iget-object v3, v3, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
2019-08-14 23:59:34 +00:00
2019-10-17 03:51:45 +00:00
if-eqz v3, :cond_5
2019-08-14 23:59:34 +00:00
2019-10-17 03:51:45 +00:00
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getMessages()Lcom/discord/stores/StoreMessages;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v5
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v1, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v1, v1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v1}, Lcom/discord/stores/StoreChat$EditingMessage;->getMessage()Lcom/discord/models/domain/ModelMessage;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v1}, Lcom/discord/models/domain/ModelMessage;->getId()J
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-wide v6
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v1, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v1, v1, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v1}, Lcom/discord/stores/StoreChat$EditingMessage;->getMessage()Lcom/discord/models/domain/ModelMessage;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v1}, Lcom/discord/models/domain/ModelMessage;->getChannelId()J
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-wide v8
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v10
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v10, v4}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual/range {v5 .. v10}, Lcom/discord/stores/StoreMessages;->editMessage(JJLjava/lang/String;)V
2019-07-24 11:27:29 +00:00
goto :goto_2
:cond_5
2019-10-17 03:51:45 +00:00
sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v5, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-wide v5, v5, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->channelId:J
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v3, v5, v6}, Lcom/discord/stores/StoreGuilds;->getFromChannelId(J)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
sget-object v5, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v5}, Lcom/discord/stores/StoreStream$Companion;->getMessages()Lcom/discord/stores/StoreMessages;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v8
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v5, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-wide v9, v5, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->channelId:J
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v5, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$model:Lcom/discord/widgets/chat/input/WidgetChatInputModel;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v11, v5, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->me:Lcom/discord/models/domain/ModelUser;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v11, v7}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getContent()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v12
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v12, v4}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelMessage$Content;->getMentions()Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v13
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
new-instance v2, Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v1, Ljava/util/Collection;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-direct {v2, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-object v14, v2
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v14, Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const/4 v15, 0x0
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const/16 v16, 0x0
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const/16 v17, 0x0
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const/16 v18, 0xe0
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const/16 v19, 0x0
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static/range {v8 .. v19}, 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/ModelPresence$Activity;Lcom/discord/models/domain/ModelMessage$Activity;ILjava/lang/Object;)Lrx/Observable;
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
sget-object v2, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1;->INSTANCE:Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$1;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v2, Lrx/functions/Func2;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v3, v1, v2}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v1
2019-10-17 03:51:45 +00:00
const-string v2, "Observable\n .\u2026 guild to messageResult }"
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v1, v2}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui(Lrx/Observable;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result-object v3
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->INSTANCE:Lcom/discord/widgets/chat/input/WidgetChatInputSend;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v4
2019-07-24 11:27:29 +00:00
const/4 v5, 0x0
const/4 v6, 0x0
2019-10-17 03:51:45 +00:00
const/4 v7, 0x0
const/4 v8, 0x0
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
new-instance v1, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$2;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-direct {v1, v0}, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1$2;-><init>(Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;)V
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-object v9, v1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
check-cast v9, Lkotlin/jvm/functions/Function1;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const/16 v10, 0x1e
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
const/4 v11, 0x0
invoke-static/range {v3 .. v11}, 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
2019-07-24 11:27:29 +00:00
:goto_2
2019-10-17 03:51:45 +00:00
sget-object v1, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->INSTANCE:Lcom/discord/widgets/chat/input/WidgetChatInputSend;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
iget-object v2, v0, Lcom/discord/widgets/chat/input/WidgetChatInputSend$configureSendListeners$1;->$chatInput:Lcom/discord/widgets/chat/input/WidgetChatInputEditText;
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
invoke-static {v1, v2}, Lcom/discord/widgets/chat/input/WidgetChatInputSend;->access$clearInput(Lcom/discord/widgets/chat/input/WidgetChatInputSend;Lcom/discord/widgets/chat/input/WidgetChatInputEditText;)Z
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
move-result v1
2019-07-24 11:27:29 +00:00
2019-10-17 03:51:45 +00:00
return v1
2019-07-24 11:27:29 +00:00
.end method