35 lines
1.5 KiB
Java
35 lines
1.5 KiB
Java
package com.discord.widgets.user.search;
|
|
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.models.user.User;
|
|
import com.discord.widgets.user.search.WidgetGlobalSearchModel;
|
|
import d0.z.d.o;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetGlobalSearchModel.kt */
|
|
public final class WidgetGlobalSearchModel$Companion$getDefaultUserSearch$recentDmUserIds$1 extends o implements Function1<Long, Long> {
|
|
public final /* synthetic */ WidgetGlobalSearchModel.ChannelContext $channelContext;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetGlobalSearchModel$Companion$getDefaultUserSearch$recentDmUserIds$1(WidgetGlobalSearchModel.ChannelContext channelContext) {
|
|
super(1);
|
|
this.$channelContext = channelContext;
|
|
}
|
|
|
|
public final Long invoke(long j) {
|
|
User v0;
|
|
Channel channel = this.$channelContext.getChannels().get(Long.valueOf(j));
|
|
if (channel == null || (v0 = AnimatableValueParser.v0(channel)) == null) {
|
|
return null;
|
|
}
|
|
return Long.valueOf(v0.getId());
|
|
}
|
|
|
|
/* 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 */ Long invoke(Long l) {
|
|
return invoke(l.longValue());
|
|
}
|
|
}
|