package com.discord.stores; import com.discord.api.guild.Guild; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; import kotlin.jvm.functions.Function1; import kotlin.jvm.functions.Function3; /* compiled from: StoreLurking.kt */ public final class StoreLurking$startLurkingInternal$4 extends o implements Function1 { public final /* synthetic */ Long $channelId; public final /* synthetic */ long $guildId; public final /* synthetic */ Function3 $onGuildLurked; public final /* synthetic */ StoreLurking this$0; /* compiled from: StoreLurking.kt */ /* renamed from: com.discord.stores.StoreLurking$startLurkingInternal$4$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function0 { public final /* synthetic */ Guild $it; public final /* synthetic */ StoreLurking$startLurkingInternal$4 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(StoreLurking$startLurkingInternal$4 storeLurking$startLurkingInternal$4, Guild guild) { super(0); this.this$0 = storeLurking$startLurkingInternal$4; this.$it = guild; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { if (!this.this$0.this$0.isLurking$app_productionBetaRelease(this.$it)) { StoreLurking.access$getLurkedGuilds$p(this.this$0.this$0).remove(Long.valueOf(this.this$0.$guildId)); StoreLurking.access$getLurkedGuildsSubject$p(this.this$0.this$0).onNext(StoreLurking.access$getLurkedGuilds$p(this.this$0.this$0)); } this.this$0.$onGuildLurked.invoke(new com.discord.models.guild.Guild(this.$it), this.this$0.$channelId, Boolean.FALSE); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreLurking$startLurkingInternal$4(StoreLurking storeLurking, long j, Function3 function3, Long l) { super(1); this.this$0 = storeLurking; this.$guildId = j; this.$onGuildLurked = function3; this.$channelId = l; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Guild guild) { invoke(guild); return Unit.a; } public final void invoke(Guild guild) { m.checkNotNullParameter(guild, "it"); StoreLurking.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, guild)); } }