2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreMessageAck$markUnread$2$1;
|
2020-10-05 23:18:16 +00:00
|
|
|
.super Lc0/n/c/k;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "StoreMessageAck.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/stores/StoreMessageAck$markUnread$2;->invoke(Ljava/util/List;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-10-05 23:18:16 +00:00
|
|
|
"Lc0/n/c/k;",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $channelMessages:Ljava/util/List;
|
|
|
|
|
|
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreMessageAck$markUnread$2;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreMessageAck$markUnread$2;Ljava/util/List;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->this$0:Lcom/discord/stores/StoreMessageAck$markUnread$2;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->$channelMessages:Ljava/util/List;
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-direct {p0, p1}, Lc0/n/c/k;-><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;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->invoke()V
|
|
|
|
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke()V
|
|
|
|
.locals 11
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->$channelMessages:Ljava/util/List;
|
|
|
|
|
|
|
|
const-string v1, "channelMessages"
|
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
move-object v6, v3
|
|
|
|
|
|
|
|
check-cast v6, Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelMessage;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
iget-object v8, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->this$0:Lcom/discord/stores/StoreMessageAck$markUnread$2;
|
|
|
|
|
|
|
|
iget-wide v8, v8, Lcom/discord/stores/StoreMessageAck$markUnread$2;->$messageId:J
|
|
|
|
|
|
|
|
cmp-long v10, v6, v8
|
|
|
|
|
|
|
|
if-gez v10, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez v3, :cond_4
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_2
|
|
|
|
move-object v0, v2
|
|
|
|
|
|
|
|
goto :goto_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_4
|
|
|
|
move-object v3, v2
|
|
|
|
|
|
|
|
check-cast v3, Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelMessage;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
move-object v8, v3
|
|
|
|
|
|
|
|
check-cast v8, Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Lcom/discord/models/domain/ModelMessage;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v8
|
|
|
|
|
|
|
|
cmp-long v10, v6, v8
|
|
|
|
|
|
|
|
if-gez v10, :cond_6
|
|
|
|
|
|
|
|
move-object v2, v3
|
|
|
|
|
|
|
|
move-wide v6, v8
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez v3, :cond_5
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_3
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->$channelMessages:Ljava/util/List;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v2, v1}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v2}, 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 v2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_7
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_4
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_9
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
move-object v6, v3
|
|
|
|
|
|
|
|
check-cast v6, Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelMessage;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
iget-object v8, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->this$0:Lcom/discord/stores/StoreMessageAck$markUnread$2;
|
|
|
|
|
|
|
|
iget-wide v8, v8, Lcom/discord/stores/StoreMessageAck$markUnread$2;->$messageId:J
|
|
|
|
|
|
|
|
cmp-long v10, v6, v8
|
|
|
|
|
|
|
|
if-ltz v10, :cond_8
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_5
|
2020-05-17 12:40:10 +00:00
|
|
|
if-eqz v6, :cond_7
|
|
|
|
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_4
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_9
|
2020-07-08 16:44:49 +00:00
|
|
|
if-eqz v0, :cond_a
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMessage;->getId()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
goto :goto_6
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_a
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->this$0:Lcom/discord/stores/StoreMessageAck$markUnread$2;
|
|
|
|
|
|
|
|
iget-wide v2, v0, Lcom/discord/stores/StoreMessageAck$markUnread$2;->$messageId:J
|
|
|
|
|
|
|
|
const/16 v0, 0x16
|
|
|
|
|
|
|
|
ushr-long/2addr v2, v0
|
|
|
|
|
|
|
|
const-wide/16 v6, 0x1
|
|
|
|
|
|
|
|
sub-long/2addr v2, v6
|
|
|
|
|
|
|
|
const-wide v6, 0x14aa2cab000L
|
|
|
|
|
|
|
|
sub-long/2addr v2, v6
|
|
|
|
|
|
|
|
shl-long/2addr v2, v0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
:goto_6
|
2020-05-17 12:40:10 +00:00
|
|
|
new-instance v0, Lcom/discord/stores/StoreMessageAck$Ack;
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v3, v5, v4}, Lcom/discord/stores/StoreMessageAck$Ack;-><init>(JZZ)V
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->this$0:Lcom/discord/stores/StoreMessageAck$markUnread$2;
|
|
|
|
|
|
|
|
iget-object v3, v2, Lcom/discord/stores/StoreMessageAck$markUnread$2;->this$0:Lcom/discord/stores/StoreMessageAck;
|
|
|
|
|
|
|
|
iget-wide v4, v2, Lcom/discord/stores/StoreMessageAck$markUnread$2;->$channelId:J
|
|
|
|
|
|
|
|
invoke-static {v3, v4, v5, v0}, Lcom/discord/stores/StoreMessageAck;->access$updateAcks(Lcom/discord/stores/StoreMessageAck;JLcom/discord/stores/StoreMessageAck$Ack;)V
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/stores/StoreStream$Companion;->getMentions()Lcom/discord/stores/StoreMentions;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->this$0:Lcom/discord/stores/StoreMessageAck$markUnread$2;
|
|
|
|
|
|
|
|
iget-wide v3, v3, Lcom/discord/stores/StoreMessageAck$markUnread$2;->$channelId:J
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3, v4, v1}, Lcom/discord/stores/StoreMentions;->processMarkUnread$app_productionDiscordExternalRelease(JLjava/util/List;)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->this$0:Lcom/discord/stores/StoreMessageAck$markUnread$2;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v2, v2, Lcom/discord/stores/StoreMessageAck$markUnread$2;->this$0:Lcom/discord/stores/StoreMessageAck;
|
|
|
|
|
|
|
|
new-instance v3, Lcom/discord/stores/StoreMessageAck$PendingAck;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v4, p0, Lcom/discord/stores/StoreMessageAck$markUnread$2$1;->this$0:Lcom/discord/stores/StoreMessageAck$markUnread$2;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-wide v4, v4, Lcom/discord/stores/StoreMessageAck$markUnread$2;->$channelId:J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v3, v4, v5, v0}, Lcom/discord/stores/StoreMessageAck$PendingAck;-><init>(JLcom/discord/stores/StoreMessageAck$Ack;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
new-instance v0, Ll0/l/e/j;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-direct {v0, v3}, Ll0/l/e/j;-><init>(Ljava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-string v3, "Observable.just(PendingAck(channelId, ack))"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-10-05 23:18:16 +00:00
|
|
|
invoke-static {v0, v3}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {v2, v0, v1}, Lcom/discord/stores/StoreMessageAck;->access$postPendingAck(Lcom/discord/stores/StoreMessageAck;Lrx/Observable;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|