package com.discord.stores; import com.discord.stores.StoreMessageAck; import com.discord.utilities.message.MessageUtils; import d0.z.d.o; import kotlin.jvm.functions.Function2; /* compiled from: StoreMessageAck.kt */ public final class StoreMessageAck$getPendingAck$1 extends o implements Function2 { public final /* synthetic */ boolean $clearLock; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreMessageAck$getPendingAck$1(boolean z2) { super(2); this.$clearLock = z2; } /* 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, java.lang.Object] */ @Override // kotlin.jvm.functions.Function2 public /* bridge */ /* synthetic */ Boolean invoke(StoreMessageAck.Ack ack, Long l) { return Boolean.valueOf(invoke(ack, l.longValue())); } public final boolean invoke(StoreMessageAck.Ack ack, long j) { boolean isNewer = MessageUtils.isNewer(ack != null ? Long.valueOf(ack.getMessageId()) : null, Long.valueOf(j)); boolean z2 = ack == null || !ack.isLockedAck(); if (isNewer) { return this.$clearLock || z2; } return false; } }