2020-11-12 02:11:44 +00:00
|
|
|
.class public final Lcom/discord/stores/StoreMessages$deleteMessage$1;
|
2020-11-16 01:00:50 +00:00
|
|
|
.super Lz/n/c/k;
|
2020-11-12 02:11:44 +00:00
|
|
|
.source "StoreMessages.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2020-11-16 01:00:50 +00:00
|
|
|
.implements Lkotlin/jvm/functions/Function0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/stores/StoreMessages;->deleteMessage(Lcom/discord/models/domain/ModelMessage;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-11-16 01:00:50 +00:00
|
|
|
"Lz/n/c/k;",
|
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
2020-11-12 02:11:44 +00:00
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $channelId:J
|
|
|
|
|
|
|
|
.field public final synthetic $message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
.field public final synthetic this$0:Lcom/discord/stores/StoreMessages;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-11-16 01:00:50 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/stores/StoreMessages;Lcom/discord/models/domain/ModelMessage;J)V
|
|
|
|
.locals 0
|
2020-11-12 23:15:09 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->this$0:Lcom/discord/stores/StoreMessages;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p2, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->$message:Lcom/discord/models/domain/ModelMessage;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-wide p3, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->$channelId:J
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lz/n/c/k;-><init>(I)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/stores/StoreMessages$deleteMessage$1;->invoke()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
return-object v0
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.method public final invoke()V
|
|
|
|
.locals 4
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->$message:Lcom/discord/models/domain/ModelMessage;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMessage;->getNonce()Ljava/lang/String;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v0
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->this$0:Lcom/discord/stores/StoreMessages;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-wide v2, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->$channelId:J
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v3}, Lcom/discord/stores/StoreMessages;->access$getMessageQueue(Lcom/discord/stores/StoreMessages;J)Lcom/discord/utilities/messagesend/MessageQueue;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "nonce"
|
|
|
|
|
|
|
|
invoke-static {v0, v2}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Lcom/discord/utilities/messagesend/MessageQueue;->cancel(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->this$0:Lcom/discord/stores/StoreMessages;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->$message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/stores/StoreMessages;->access$handleLocalMessageDelete(Lcom/discord/stores/StoreMessages;Lcom/discord/models/domain/ModelMessage;)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->$message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelMessage;->getType()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, -0x2
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->this$0:Lcom/discord/stores/StoreMessages;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/stores/StoreMessages$deleteMessage$1;->$message:Lcom/discord/models/domain/ModelMessage;
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/stores/FailedMessageResolutionType;->DELETED:Lcom/discord/stores/FailedMessageResolutionType;
|
|
|
|
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/discord/stores/StoreMessages;->access$trackFailedLocalMessageResolved(Lcom/discord/stores/StoreMessages;Lcom/discord/models/domain/ModelMessage;Lcom/discord/stores/FailedMessageResolutionType;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
:cond_1
|
2020-11-12 02:11:44 +00:00
|
|
|
return-void
|
|
|
|
.end method
|