apkfuckery/com.discord/smali/com/discord/widgets/chat/input/WidgetChatInputModel.smali

1096 lines
27 KiB
Smali

.class public Lcom/discord/widgets/chat/input/WidgetChatInputModel;
.super Ljava/lang/Object;
.source "WidgetChatInputModel.java"
# instance fields
.field public final ableToSendMessage:Z
.field public final canShowStickerPickerNfx:Z
.field public final channel:Lcom/discord/models/domain/ModelChannel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public final channelId:J
.field public final editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final externalText:Ljava/lang/String;
.field public final inputHint:Ljava/lang/String;
.field public final isLurking:Z
.field public final isOnCooldown:Z
.field public final isSystemDM:Z
.field public final maxFileSizeMB:I
.field public final me:Lcom/discord/models/domain/ModelUser;
.field public final shouldShowFollow:Z
.field public final verificationLevelTriggered:I
# direct methods
.method public constructor <init>(Lcom/discord/models/domain/ModelChannel;JLcom/discord/models/domain/ModelUser;Lcom/discord/stores/StoreChat$EditingMessage;Ljava/lang/String;ZIZZLjava/lang/String;ZIZZ)V
.locals 0
.param p1 # Lcom/discord/models/domain/ModelChannel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p5 # Lcom/discord/stores/StoreChat$EditingMessage;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-eqz p1, :cond_0
iput-object p1, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->channel:Lcom/discord/models/domain/ModelChannel;
iput-wide p2, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->channelId:J
iput-object p4, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->me:Lcom/discord/models/domain/ModelUser;
iput-object p5, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
iput-object p6, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->inputHint:Ljava/lang/String;
iput-boolean p7, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->ableToSendMessage:Z
iput p8, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->verificationLevelTriggered:I
iput-boolean p9, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isLurking:Z
iput-boolean p10, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isSystemDM:Z
iput-object p11, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->externalText:Ljava/lang/String;
iput-boolean p12, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isOnCooldown:Z
iput p13, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->maxFileSizeMB:I
iput-boolean p14, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->shouldShowFollow:Z
iput-boolean p15, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->canShowStickerPickerNfx:Z
return-void
:cond_0
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "channel is marked non-null but is null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public static synthetic a(Lcom/discord/models/domain/ModelChannel;)Ljava/lang/Boolean;
.locals 0
if-nez p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p0
return-object p0
.end method
.method public static b(Landroid/content/Context;Lcom/discord/models/domain/ModelChannel;)Lrx/Observable;
.locals 13
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
move-result-object v0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/discord/stores/StoreUser;->observeMe(Z)Lrx/Observable;
move-result-object v2
invoke-static {}, Lcom/discord/stores/StoreStream;->getChat()Lcom/discord/stores/StoreChat;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/StoreChat;->getEditingMessage()Lrx/Observable;
move-result-object v3
invoke-static {}, Lcom/discord/stores/StoreStream;->getUserRelationships()Lcom/discord/stores/StoreUserRelationships;
move-result-object v0
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isDM()Z
move-result v1
if-eqz v1, :cond_0
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getDMRecipient()Lcom/discord/models/domain/ModelUser;
move-result-object v1
invoke-virtual {v1}, Lcom/discord/models/domain/ModelUser;->getId()J
move-result-wide v4
goto :goto_0
:cond_0
const-wide/16 v4, 0x0
:goto_0
invoke-virtual {v0, v4, v5}, Lcom/discord/stores/StoreUserRelationships;->observe(J)Lrx/Observable;
move-result-object v4
invoke-static {}, Lcom/discord/stores/StoreStream;->getPermissions()Lcom/discord/stores/StorePermissions;
move-result-object v0
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
move-result-wide v5
invoke-virtual {v0, v5, v6}, Lcom/discord/stores/StorePermissions;->getForChannel(J)Lrx/Observable;
move-result-object v5
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
invoke-static {v0, v1}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->getVerificationLevelTriggered(J)Lrx/Observable;
move-result-object v6
invoke-static {}, Lcom/discord/stores/StoreStream;->getLurking()Lcom/discord/stores/StoreLurking;
move-result-object v0
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
move-result-wide v7
invoke-virtual {v0, v7, v8}, Lcom/discord/stores/StoreLurking;->isLurkingObs(J)Lrx/Observable;
move-result-object v7
invoke-static {}, Lcom/discord/stores/StoreStream;->getChat()Lcom/discord/stores/StoreChat;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/StoreChat;->getExternalMessageText()Lrx/Observable;
move-result-object v8
invoke-static {}, Lcom/discord/stores/StoreStream;->getSlowMode()Lcom/discord/stores/StoreSlowMode;
move-result-object v0
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
move-result-wide v9
invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/discord/stores/StoreSlowMode;->getCooldownSecs(Ljava/lang/Long;)Lrx/Observable;
move-result-object v0
sget-object v1, Lf/a/o/b/a/c0;->d:Lf/a/o/b/a/c0;
invoke-virtual {v0, v1}, Lrx/Observable;->E(Ll0/k/b;)Lrx/Observable;
move-result-object v0
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
move-result-object v9
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v0
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
move-result-wide v10
invoke-virtual {v0, v10, v11}, Lcom/discord/stores/StoreGuilds;->observeFromChannelId(J)Lrx/Observable;
move-result-object v0
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
move-result-object v10
new-instance v0, Lcom/discord/widgets/chat/input/sticker/StickerPickerNfxManager;
invoke-direct {v0}, Lcom/discord/widgets/chat/input/sticker/StickerPickerNfxManager;-><init>()V
invoke-virtual {v0}, Lcom/discord/widgets/chat/input/sticker/StickerPickerNfxManager;->observeCanShowStickerPickerNfx()Lrx/Observable;
move-result-object v11
new-instance v12, Lf/a/o/b/a/z;
invoke-direct {v12, p1, p0}, Lf/a/o/b/a/z;-><init>(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;)V
invoke-static/range {v2 .. v12}, Lcom/discord/utilities/rx/ObservableCombineLatestOverloadsKt;->combineLatest(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lkotlin/jvm/functions/Function10;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/discord/utilities/rx/LeadingEdgeThrottle;
const-wide/16 v0, 0x15e
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-direct {p1, v0, v1, v2}, Lcom/discord/utilities/rx/LeadingEdgeThrottle;-><init>(JLjava/util/concurrent/TimeUnit;)V
new-instance v0, Ll0/l/a/u;
iget-object p0, p0, Lrx/Observable;->d:Lrx/Observable$a;
invoke-direct {v0, p0, p1}, Ll0/l/a/u;-><init>(Lrx/Observable$a;Lrx/Observable$b;)V
invoke-static {v0}, Lrx/Observable;->e0(Lrx/Observable$a;)Lrx/Observable;
move-result-object p0
sget-object p1, Lf/a/b/r;->d:Lf/a/b/r;
invoke-virtual {p0, p1}, Lrx/Observable;->k(Lrx/Observable$c;)Lrx/Observable;
move-result-object p0
return-object p0
.end method
.method public static synthetic c(Landroid/view/View;)V
.locals 1
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object p0
sget-object v0, Lcom/discord/widgets/user/account/WidgetUserAccountVerifyBase$Mode;->UNFORCED:Lcom/discord/widgets/user/account/WidgetUserAccountVerifyBase$Mode;
invoke-static {p0, v0}, Lcom/discord/widgets/user/email/WidgetUserEmailVerify;->launch(Landroid/content/Context;Lcom/discord/widgets/user/account/WidgetUserAccountVerifyBase$Mode;)V
return-void
.end method
.method public static synthetic d(Landroid/view/View;)V
.locals 1
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object p0
sget-object v0, Lcom/discord/widgets/user/account/WidgetUserAccountVerifyBase$Mode;->UNFORCED:Lcom/discord/widgets/user/account/WidgetUserAccountVerifyBase$Mode;
invoke-static {p0, v0}, Lcom/discord/widgets/user/phone/WidgetUserPhoneAdd;->launch(Landroid/content/Context;Lcom/discord/widgets/user/account/WidgetUserAccountVerifyBase$Mode;)V
return-void
.end method
.method public static synthetic e(JLjava/lang/Long;Lcom/discord/models/domain/ModelGuild;Ljava/lang/Integer;Ljava/util/Map;Lcom/discord/models/domain/ModelUser$Me;)Ljava/lang/Integer;
.locals 2
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
invoke-interface {p5, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/util/Map;
if-eqz p6, :cond_0
if-eqz p0, :cond_0
invoke-virtual {p6}, Lcom/discord/models/domain/ModelUser;->getId()J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/discord/models/domain/ModelGuildMember$Computed;
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
const/4 p1, 0x1
const/4 p5, 0x0
if-eqz p3, :cond_1
if-eqz p6, :cond_1
invoke-virtual {p6}, Lcom/discord/models/domain/ModelUser;->getId()J
move-result-wide v0
invoke-virtual {p3, v0, v1}, Lcom/discord/models/domain/ModelGuild;->isOwner(J)Z
move-result p3
if-eqz p3, :cond_1
const/4 p3, 0x1
goto :goto_1
:cond_1
const/4 p3, 0x0
:goto_1
if-eqz p0, :cond_2
invoke-virtual {p0}, Lcom/discord/models/domain/ModelGuildMember$Computed;->getRoles()Ljava/util/List;
move-result-object p0
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z
move-result p0
if-nez p0, :cond_2
const/4 p0, 0x1
goto :goto_2
:cond_2
const/4 p0, 0x0
:goto_2
if-eqz p6, :cond_3
invoke-virtual {p6}, Lcom/discord/models/domain/ModelUser$Me;->getPhone()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_3
const/4 v0, 0x1
goto :goto_3
:cond_3
const/4 v0, 0x0
:goto_3
if-nez p3, :cond_c
if-nez p0, :cond_c
if-eqz v0, :cond_4
goto :goto_6
:cond_4
invoke-virtual {p4}, Ljava/lang/Integer;->intValue()I
move-result p0
if-eq p0, p1, :cond_9
const/4 p3, 0x2
if-eq p0, p3, :cond_7
const/4 p4, 0x3
if-eq p0, p4, :cond_6
const/4 p1, 0x4
if-eq p0, p1, :cond_5
goto :goto_4
:cond_5
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
:cond_6
invoke-virtual {p2}, Ljava/lang/Long;->longValue()J
move-result-wide v0
invoke-static {v0, v1}, Lcom/discord/models/domain/ModelGuildMember;->isGuildMemberOldEnough(J)Z
move-result p0
if-nez p0, :cond_7
invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
:cond_7
if-eqz p6, :cond_8
invoke-virtual {p6}, Lcom/discord/models/domain/ModelUser;->isAccountOldEnough()Z
move-result p0
if-nez p0, :cond_9
:cond_8
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
:cond_9
if-eqz p6, :cond_b
invoke-virtual {p6}, Lcom/discord/models/domain/ModelUser$Me;->isVerified()Z
move-result p0
if-nez p0, :cond_a
goto :goto_5
:cond_a
:goto_4
invoke-static {p5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
:cond_b
:goto_5
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
:cond_c
:goto_6
invoke-static {p5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
.end method
.method public static synthetic f(Ljava/lang/Integer;)Ljava/lang/Boolean;
.locals 0
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
if-lez p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p0
return-object p0
.end method
.method public static synthetic g(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;Lcom/discord/models/domain/ModelUser$Me;Lcom/discord/stores/StoreChat$EditingMessage;Ljava/lang/Integer;Ljava/lang/Long;Ljava/lang/Integer;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Boolean;Lcom/discord/models/domain/ModelGuild;Ljava/lang/Boolean;)Lcom/discord/widgets/chat/input/WidgetChatInputModel;
.locals 17
move-object/from16 v1, p0
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelChannel;->getId()J
move-result-wide v2
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelChannel;->isSystemDM()Z
move-result v10
move-object/from16 v0, p5
invoke-static {v1, v0}, Lcom/discord/utilities/permissions/PermissionUtils;->hasAccessWrite(Lcom/discord/models/domain/ModelChannel;Ljava/lang/Long;)Z
move-result v0
const/4 v4, 0x2
move-object/from16 v5, p4
invoke-static {v5, v4}, Lcom/discord/models/domain/ModelUserRelationship;->isType(Ljava/lang/Integer;I)Z
move-result v4
const/4 v5, 0x1
const/4 v6, 0x0
if-eqz p2, :cond_0
if-nez v4, :cond_0
if-eqz v0, :cond_0
invoke-virtual/range {p7 .. p7}, Ljava/lang/Boolean;->booleanValue()Z
move-result v7
if-nez v7, :cond_0
const/4 v7, 0x1
goto :goto_0
:cond_0
const/4 v7, 0x0
:goto_0
invoke-virtual/range {p0 .. p0}, Lcom/discord/models/domain/ModelChannel;->getType()I
move-result v8
const/4 v9, 0x5
if-ne v8, v9, :cond_1
if-nez v7, :cond_1
move-object/from16 v5, p1
const/4 v14, 0x1
goto :goto_1
:cond_1
move-object/from16 v5, p1
const/4 v14, 0x0
:goto_1
invoke-static {v5, v1, v4, v0}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->getHint(Landroid/content/Context;Lcom/discord/models/domain/ModelChannel;ZZ)Ljava/lang/String;
move-result-object v8
if-eqz p2, :cond_2
invoke-virtual/range {p2 .. p2}, Lcom/discord/models/domain/ModelUser;->getMaxFileSizeMB()I
move-result v0
goto :goto_2
:cond_2
const/16 v0, 0x8
:goto_2
if-eqz p10, :cond_3
invoke-virtual/range {p10 .. p10}, Lcom/discord/models/domain/ModelGuild;->getMaxFileSizeMB()I
move-result v6
:cond_3
invoke-static {v6, v0}, Ljava/lang/Math;->max(II)I
move-result v13
new-instance v16, Lcom/discord/widgets/chat/input/WidgetChatInputModel;
invoke-virtual/range {p6 .. p6}, Ljava/lang/Integer;->intValue()I
move-result v9
invoke-virtual/range {p7 .. p7}, Ljava/lang/Boolean;->booleanValue()Z
move-result v11
invoke-virtual/range {p9 .. p9}, Ljava/lang/Boolean;->booleanValue()Z
move-result v12
invoke-virtual/range {p11 .. p11}, Ljava/lang/Boolean;->booleanValue()Z
move-result v15
move-object/from16 v0, v16
move-object/from16 v1, p0
move-object/from16 v4, p2
move-object/from16 v5, p3
move-object v6, v8
move v8, v9
move v9, v11
move-object/from16 v11, p8
invoke-direct/range {v0 .. v15}, Lcom/discord/widgets/chat/input/WidgetChatInputModel;-><init>(Lcom/discord/models/domain/ModelChannel;JLcom/discord/models/domain/ModelUser;Lcom/discord/stores/StoreChat$EditingMessage;Ljava/lang/String;ZIZZLjava/lang/String;ZIZZ)V
return-object v16
.end method
.method public static get(Landroid/content/Context;)Lrx/Observable;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Lrx/Observable<",
"Lcom/discord/widgets/chat/input/WidgetChatInputModel;",
">;"
}
.end annotation
invoke-static {}, Lcom/discord/stores/StoreStream;->getChannelsSelected()Lcom/discord/stores/StoreChannelsSelected;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/StoreChannelsSelected;->get()Lrx/Observable;
move-result-object v0
sget-object v1, Lf/a/o/b/a/b0;->d:Lf/a/o/b/a/b0;
new-instance v2, Lf/a/o/b/a/d0;
invoke-direct {v2, p0}, Lf/a/o/b/a/d0;-><init>(Landroid/content/Context;)V
const/4 p0, 0x0
invoke-static {v1, p0, v2}, Lf/a/b/s;->q(Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Lrx/Observable$c;
move-result-object p0
invoke-virtual {v0, p0}, Lrx/Observable;->k(Lrx/Observable$c;)Lrx/Observable;
move-result-object p0
return-object p0
.end method
.method public static getHint(Landroid/content/Context;Lcom/discord/models/domain/ModelChannel;ZZ)Ljava/lang/String;
.locals 0
if-eqz p2, :cond_0
const p1, 0x7f1205e6
invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_0
if-nez p3, :cond_1
const p1, 0x7f121039
invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_1
invoke-static {p1, p0}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;)Ljava/lang/String;
move-result-object p1
const p2, 0x7f121698
invoke-virtual {p0, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object p0
const/4 p2, 0x1
new-array p2, p2, [Ljava/lang/Object;
const/4 p3, 0x0
aput-object p1, p2, p3
invoke-static {p0, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static getVerificationLevelTriggered(J)Lrx/Observable;
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(J)",
"Lrx/Observable<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v0
invoke-virtual {v0, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeJoinedAt(J)Lrx/Observable;
move-result-object v1
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v0
invoke-virtual {v0, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeGuild(J)Lrx/Observable;
move-result-object v2
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v0
invoke-virtual {v0, p0, p1}, Lcom/discord/stores/StoreGuilds;->observeVerificationLevel(J)Lrx/Observable;
move-result-object v3
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/StoreGuilds;->observeComputed()Lrx/Observable;
move-result-object v0
new-instance v4, Lcom/discord/utilities/rx/LeadingEdgeThrottle;
sget-object v5, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
const-wide/16 v6, 0x5dc
invoke-direct {v4, v6, v7, v5}, Lcom/discord/utilities/rx/LeadingEdgeThrottle;-><init>(JLjava/util/concurrent/TimeUnit;)V
new-instance v5, Ll0/l/a/u;
iget-object v0, v0, Lrx/Observable;->d:Lrx/Observable$a;
invoke-direct {v5, v0, v4}, Ll0/l/a/u;-><init>(Lrx/Observable$a;Lrx/Observable$b;)V
invoke-static {v5}, Lrx/Observable;->e0(Lrx/Observable$a;)Lrx/Observable;
move-result-object v4
invoke-static {}, Lcom/discord/stores/StoreStream;->getUsers()Lcom/discord/stores/StoreUser;
move-result-object v0
const/4 v5, 0x1
invoke-virtual {v0, v5}, Lcom/discord/stores/StoreUser;->observeMe(Z)Lrx/Observable;
move-result-object v5
new-instance v6, Lf/a/o/b/a/e0;
invoke-direct {v6, p0, p1}, Lf/a/o/b/a/e0;-><init>(J)V
invoke-static/range {v1 .. v6}, Lrx/Observable;->g(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func5;)Lrx/Observable;
move-result-object p0
invoke-virtual {p0}, Lrx/Observable;->q()Lrx/Observable;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public getVerificationAction()Landroid/view/View$OnClickListener;
.locals 2
iget v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->verificationLevelTriggered:I
const/4 v1, 0x1
if-eq v0, v1, :cond_1
const/4 v1, 0x4
if-eq v0, v1, :cond_0
const/4 v0, 0x0
return-object v0
:cond_0
sget-object v0, Lf/a/o/b/a/y;->d:Lf/a/o/b/a/y;
return-object v0
:cond_1
sget-object v0, Lf/a/o/b/a/a0;->d:Lf/a/o/b/a/a0;
return-object v0
.end method
.method public getVerificationActionText(Landroid/content/Context;)Ljava/lang/String;
.locals 2
iget v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->verificationLevelTriggered:I
const/4 v1, 0x1
if-eq v0, v1, :cond_1
const/4 v1, 0x4
if-eq v0, v1, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
const v0, 0x7f12187b
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object p1
return-object p1
:cond_1
const v0, 0x7f121872
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public getVerificationText(Landroid/content/Context;)Ljava/lang/String;
.locals 4
iget v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->verificationLevelTriggered:I
const/4 v1, 0x1
if-eq v0, v1, :cond_3
const/4 v2, 0x2
const/4 v3, 0x0
if-eq v0, v2, :cond_2
const/4 v2, 0x3
if-eq v0, v2, :cond_1
const/4 v1, 0x4
if-eq v0, v1, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
const v0, 0x7f120c25
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object p1
return-object p1
:cond_1
const v0, 0x7f120c23
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "10"
aput-object v2, v1, v3
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
return-object p1
:cond_2
const v0, 0x7f120c22
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "5"
aput-object v2, v1, v3
invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
return-object p1
:cond_3
const v0, 0x7f120c24
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public isEditing()Z
.locals 5
iget-boolean v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->ableToSendMessage:Z
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->editingMessage:Lcom/discord/stores/StoreChat$EditingMessage;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/stores/StoreChat$EditingMessage;->getMessage()Lcom/discord/models/domain/ModelMessage;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMessage;->getChannelId()J
move-result-wide v0
iget-wide v2, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->channelId:J
cmp-long v4, v0, v2
if-nez v4, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isInputShowing()Z
.locals 1
iget-boolean v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isSystemDM:Z
if-nez v0, :cond_0
iget-boolean v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->isLurking:Z
if-nez v0, :cond_0
iget v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->verificationLevelTriggered:I
if-nez v0, :cond_0
iget-boolean v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->shouldShowFollow:Z
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public isVerificationLevelTriggered()Z
.locals 1
iget v0, p0, Lcom/discord/widgets/chat/input/WidgetChatInputModel;->verificationLevelTriggered:I
if-lez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method