35 lines
1.6 KiB
Java
35 lines
1.6 KiB
Java
package com.discord.widgets.friends;
|
|
|
|
import com.discord.utilities.captcha.CaptchaHelper;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetFriendsFindNearby.kt */
|
|
public final class WidgetFriendsFindNearby$captchaLauncher$1 extends o implements Function1<CaptchaHelper.CaptchaPayload, Unit> {
|
|
public final /* synthetic */ WidgetFriendsFindNearby this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetFriendsFindNearby$captchaLauncher$1(WidgetFriendsFindNearby widgetFriendsFindNearby) {
|
|
super(1);
|
|
this.this$0 = widgetFriendsFindNearby;
|
|
}
|
|
|
|
/* 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(CaptchaHelper.CaptchaPayload captchaPayload) {
|
|
invoke(captchaPayload);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(CaptchaHelper.CaptchaPayload captchaPayload) {
|
|
Integer discriminator;
|
|
m.checkNotNullParameter(captchaPayload, "token");
|
|
String username = WidgetFriendsFindNearby.access$getViewModel$p(this.this$0).getUsername();
|
|
if (username != null && (discriminator = WidgetFriendsFindNearby.access$getViewModel$p(this.this$0).getDiscriminator()) != null) {
|
|
WidgetFriendsFindNearby.access$sendFriendRequest(this.this$0, username, discriminator.intValue(), captchaPayload);
|
|
}
|
|
}
|
|
}
|