47 lines
2.0 KiB
Java
47 lines
2.0 KiB
Java
package com.discord.widgets.notice;
|
|
|
|
import com.discord.models.user.MeUser;
|
|
import com.discord.stores.StoreNotices;
|
|
import com.discord.stores.StoreStream;
|
|
import com.discord.utilities.time.Clock;
|
|
import com.discord.utilities.user.UserUtils;
|
|
import com.discord.widgets.notice.WidgetNoticeNuxSamsungLink;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Pair;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetNoticeNuxSamsungLink.kt */
|
|
public final class WidgetNoticeNuxSamsungLink$Companion$enqueue$2 extends o implements Function1<Pair<? extends Boolean, ? extends MeUser>, Unit> {
|
|
public final /* synthetic */ Clock $clock;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetNoticeNuxSamsungLink$Companion$enqueue$2(Clock clock) {
|
|
super(1);
|
|
this.$clock = clock;
|
|
}
|
|
|
|
/* 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(Pair<? extends Boolean, ? extends MeUser> pair) {
|
|
invoke((Pair<Boolean, MeUser>) pair);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(Pair<Boolean, MeUser> pair) {
|
|
MeUser component2 = pair.component2();
|
|
if (!pair.component1().booleanValue()) {
|
|
m.checkNotNullParameter("beta", "flavorVendor");
|
|
if (!m.areEqual("beta", "samsung")) {
|
|
StoreNotices.markSeen$default(StoreStream.Companion.getNotices(), "NUX/SamsungLink", 0, 2, null);
|
|
}
|
|
}
|
|
UserUtils userUtils = UserUtils.INSTANCE;
|
|
m.checkNotNullExpressionValue(component2, "meUser");
|
|
if (userUtils.getAgeMs(component2, this.$clock) > 2419200000L) {
|
|
WidgetNoticeNuxSamsungLink.Companion.access$internalEnqueue(WidgetNoticeNuxSamsungLink.Companion);
|
|
}
|
|
}
|
|
}
|