package com.discord.stores; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function0; /* compiled from: StoreAuditLog.kt */ public final class StoreAuditLog$fetchAuditLogIfNeeded$1 extends o implements Function0 { public final /* synthetic */ long $guildId; public final /* synthetic */ StoreAuditLog this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreAuditLog$fetchAuditLogIfNeeded$1(StoreAuditLog storeAuditLog, long j) { super(0); this.this$0 = storeAuditLog; this.$guildId = j; } @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final void mo1invoke() { boolean z2 = true; boolean z3 = this.$guildId != StoreAuditLog.access$getState$p(this.this$0).getGuildId(); if (StoreAuditLog.access$getState$p(this.this$0).getEntries() != null || StoreAuditLog.access$getState$p(this.this$0).isLoading()) { z2 = false; } if (z3) { StoreAuditLog.access$clearStateInternal(this.this$0); } if (z3 || z2) { StoreAuditLog storeAuditLog = this.this$0; StoreAuditLog.access$fetchAuditLogs(storeAuditLog, this.$guildId, StoreAuditLog.access$getState$p(storeAuditLog).getFilter()); } } }