228 lines
7.2 KiB
Smali
228 lines
7.2 KiB
Smali
.class public final Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetIncomingShare.kt"
|
|
|
|
# interfaces
|
|
.implements Ll0/k/b;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/share/WidgetIncomingShare;->onSendClicked(Landroid/content/Context;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;Lcom/discord/widgets/share/WidgetIncomingShare$ContentModel;ZIZ)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Ll0/k/b<",
|
|
"Lkotlin/Pair<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
">;",
|
|
"Lrx/Observable<",
|
|
"+",
|
|
"Lkotlin/Pair<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
"+",
|
|
"Lcom/discord/utilities/messagesend/MessageResult;",
|
|
">;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $data:Ljava/util/List;
|
|
|
|
.field public final synthetic $gameInviteModel:Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/share/WidgetIncomingShare;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/share/WidgetIncomingShare;Ljava/util/List;Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;->this$0:Lcom/discord/widgets/share/WidgetIncomingShare;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;->$data:Ljava/util/List;
|
|
|
|
iput-object p3, p0, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;->$gameInviteModel:Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lkotlin/Pair;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;->call(Lkotlin/Pair;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final call(Lkotlin/Pair;)Lrx/Observable;
|
|
.locals 19
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/Pair<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
">;)",
|
|
"Lrx/Observable<",
|
|
"+",
|
|
"Lkotlin/Pair<",
|
|
"Lcom/discord/models/domain/ModelUser;",
|
|
"Lcom/discord/utilities/messagesend/MessageResult;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
iget-object v2, v1, Lkotlin/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast v2, Lcom/discord/models/domain/ModelUser;
|
|
|
|
iget-object v1, v1, Lkotlin/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast v1, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
sget-object v3, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/stores/StoreStream$Companion;->getMessages()Lcom/discord/stores/StoreMessages;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v4
|
|
|
|
const-string v1, "meUser"
|
|
|
|
invoke-static {v2, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v1, v0, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;->this$0:Lcom/discord/widgets/share/WidgetIncomingShare;
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/share/WidgetIncomingShare;->access$getCommentInput$p(Lcom/discord/widgets/share/WidgetIncomingShare;)Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getTextOrEmpty(Lcom/google/android/material/textfield/TextInputLayout;)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
const/4 v8, 0x0
|
|
|
|
iget-object v9, v0, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;->$data:Ljava/util/List;
|
|
|
|
const/4 v10, 0x0
|
|
|
|
iget-object v1, v0, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;->$gameInviteModel:Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;->getApplication()Lcom/discord/models/domain/ModelApplication;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v11, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v11, v6
|
|
|
|
:goto_0
|
|
iget-object v1, v0, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;->$gameInviteModel:Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;->getActivity()Lcom/discord/models/domain/activity/ModelActivity;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v12, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-object v12, v6
|
|
|
|
:goto_1
|
|
iget-object v1, v0, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;->$gameInviteModel:Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/chat/list/ViewEmbedGameInvite$Model;->getMessageActivity()Lcom/discord/models/domain/ModelMessage$Activity;
|
|
|
|
move-result-object v1
|
|
|
|
move-object v13, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move-object v13, v6
|
|
|
|
:goto_2
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v16, 0x0
|
|
|
|
const/16 v17, 0xe00
|
|
|
|
const/16 v18, 0x0
|
|
|
|
move-object v6, v2
|
|
|
|
invoke-static/range {v3 .. v18}, Lcom/discord/stores/StoreMessages;->sendMessage$default(Lcom/discord/stores/StoreMessages;JLcom/discord/models/domain/ModelUser;Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Lcom/discord/models/domain/ModelApplication;Lcom/discord/models/domain/activity/ModelActivity;Lcom/discord/models/domain/ModelMessage$Activity;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Integer;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v3, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2$$special$$inlined$let$lambda$1;
|
|
|
|
invoke-direct {v3, v0, v2}, Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2$$special$$inlined$let$lambda$1;-><init>(Lcom/discord/widgets/share/WidgetIncomingShare$onSendClicked$2;Lcom/discord/models/domain/ModelUser;)V
|
|
|
|
invoke-virtual {v1, v3}, Lrx/Observable;->D(Ll0/k/b;)Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
sget-object v1, Ll0/l/a/f;->e:Lrx/Observable;
|
|
|
|
:goto_3
|
|
return-object v1
|
|
.end method
|