discord-jadx/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventCr...

37 lines
1.6 KiB
Java

package com.discord.widgets.guildscheduledevent;
import c0.z.d.o;
import com.discord.api.channel.Channel;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetGuildScheduledEventCreateSuccessViewModel.kt */
public final class WidgetGuildScheduledEventCreateSuccessViewModel$generateInviteLink$1 extends o implements Function1<Channel, Unit> {
public final /* synthetic */ Long $channelId;
public final /* synthetic */ WidgetGuildScheduledEventCreateSuccessViewModel this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildScheduledEventCreateSuccessViewModel$generateInviteLink$1(WidgetGuildScheduledEventCreateSuccessViewModel widgetGuildScheduledEventCreateSuccessViewModel, Long l) {
super(1);
this.this$0 = widgetGuildScheduledEventCreateSuccessViewModel;
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(Channel channel) {
invoke(channel);
return Unit.a;
}
public final void invoke(Channel channel) {
Long l = this.$channelId;
if (l == null) {
l = channel != null ? Long.valueOf(channel.h()) : null;
}
if (l != null) {
WidgetGuildScheduledEventCreateSuccessViewModel.access$getInviteGenerator$p(this.this$0).generateForAppComponent(this.this$0, l.longValue());
}
}
}