discord-jadx/app/src/main/java/com/discord/widgets/user/search/WidgetGlobalSearchModel$Com...

32 lines
1.4 KiB
Java

package com.discord.widgets.user.search;
import com.discord.api.channel.Channel;
import com.discord.widgets.user.search.WidgetGlobalSearchModel;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetGlobalSearchModel.kt */
public final class WidgetGlobalSearchModel$Companion$create$results$1 extends o implements Function1<WidgetGlobalSearchModel.ItemDataPayload, Boolean> {
public final /* synthetic */ Channel $lastChannel;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGlobalSearchModel$Companion$create$results$1(Channel channel) {
super(1);
this.$lastChannel = channel;
}
/* 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 */ Boolean invoke(WidgetGlobalSearchModel.ItemDataPayload itemDataPayload) {
return Boolean.valueOf(invoke(itemDataPayload));
}
public final boolean invoke(WidgetGlobalSearchModel.ItemDataPayload itemDataPayload) {
m.checkNotNullParameter(itemDataPayload, "it");
long h = this.$lastChannel.h();
Channel channel = itemDataPayload.getChannel();
return channel != null && h == channel.h();
}
}