40 lines
1.6 KiB
Java
40 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$4 extends o implements Function1<Long, Boolean> {
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3;
|
|
public final /* synthetic */ Map $threadParentMap;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChannelListModel$Companion$guildListBuilder$4(Map map, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3) {
|
|
super(1);
|
|
this.$threadParentMap = map;
|
|
this.$isThreadUnread$3 = widgetChannelListModel$Companion$guildListBuilder$3;
|
|
}
|
|
|
|
/* 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 true;
|
|
}
|
|
for (Channel channel : collection) {
|
|
if (this.$isThreadUnread$3.invoke(channel)) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|