42 lines
1.6 KiB
Java
42 lines
1.6 KiB
Java
package com.discord.widgets.channels.list;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
import d0.z.d.o;
|
|
import java.util.Collection;
|
|
import java.util.Map;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetChannelListModel.kt */
|
|
public final class WidgetChannelListModel$Companion$guildListBuilder$5 extends o implements Function1<Long, Boolean> {
|
|
public final /* synthetic */ Channel $selectedChannel;
|
|
public final /* synthetic */ Map $threadParentMap;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChannelListModel$Companion$guildListBuilder$5(Map map, Channel channel) {
|
|
super(1);
|
|
this.$threadParentMap = map;
|
|
this.$selectedChannel = 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(Long l) {
|
|
return Boolean.valueOf(invoke(l.longValue()));
|
|
}
|
|
|
|
public final boolean invoke(long j) {
|
|
Collection<Channel> collection = (Collection) this.$threadParentMap.get(Long.valueOf(j));
|
|
if (collection == null) {
|
|
return false;
|
|
}
|
|
for (Channel channel : collection) {
|
|
long h = channel.h();
|
|
Channel channel2 = this.$selectedChannel;
|
|
if (channel2 != null && h == channel2.h()) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|