90 lines
5.3 KiB
Java
90 lines
5.3 KiB
Java
package com.discord.widgets.channels.list;
|
|
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.utilities.channel.GuildChannelsInfo;
|
|
import com.discord.widgets.channels.list.items.ChannelListItemVoiceUser;
|
|
import com.discord.widgets.stage.model.StageChannel;
|
|
import d0.t.n;
|
|
import d0.t.n0;
|
|
import d0.z.d.o;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.HashSet;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: WidgetChannelListModel.kt */
|
|
public final class WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8 extends o implements Function0<Collection<? extends ChannelListItemVoiceUser>> {
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$4 $areAllChildThreadsRead$4$inlined;
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$5 $areAnyChildThreadsSelected$5$inlined;
|
|
public final /* synthetic */ long $channelId;
|
|
public final /* synthetic */ Set $channelsWithActiveThreads$inlined;
|
|
public final /* synthetic */ Set $collapsedCategories$inlined;
|
|
public final /* synthetic */ HashSet $forceViewCategories$inlined;
|
|
public final /* synthetic */ GuildChannelsInfo $guild$inlined;
|
|
public final /* synthetic */ List $guildScheduledEvents$inlined;
|
|
public final /* synthetic */ HashSet $hiddenChannelsIds$inlined;
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$3 $isThreadUnread$3$inlined;
|
|
public final /* synthetic */ ArrayList $items$inlined;
|
|
public final /* synthetic */ Map $mentionCounts$inlined;
|
|
public final /* synthetic */ Channel $selectedChannel$inlined;
|
|
public final /* synthetic */ long $selectedGuildId$inlined;
|
|
public final /* synthetic */ long $selectedVoiceChannelId$inlined;
|
|
public final /* synthetic */ Map $stageChannels$inlined;
|
|
public final /* synthetic */ Map $stageInstances$inlined;
|
|
public final /* synthetic */ Map $threadParentMap$inlined;
|
|
public final /* synthetic */ WidgetChannelListModel$Companion$guildListBuilder$2 $tryRemoveEmptyCategory$2$inlined;
|
|
public final /* synthetic */ Set $unreadChannelIds$inlined;
|
|
public final /* synthetic */ Map $voiceStates$inlined;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$8(long j, GuildChannelsInfo guildChannelsInfo, HashSet hashSet, Channel channel, Map map, Set set, long j2, WidgetChannelListModel$Companion$guildListBuilder$5 widgetChannelListModel$Companion$guildListBuilder$5, Set set2, WidgetChannelListModel$Companion$guildListBuilder$3 widgetChannelListModel$Companion$guildListBuilder$3, HashSet hashSet2, WidgetChannelListModel$Companion$guildListBuilder$4 widgetChannelListModel$Companion$guildListBuilder$4, long j3, Map map2, Set set3, List list, Map map3, Map map4, Map map5, ArrayList arrayList, WidgetChannelListModel$Companion$guildListBuilder$2 widgetChannelListModel$Companion$guildListBuilder$2) {
|
|
super(0);
|
|
this.$channelId = j;
|
|
this.$guild$inlined = guildChannelsInfo;
|
|
this.$forceViewCategories$inlined = hashSet;
|
|
this.$selectedChannel$inlined = channel;
|
|
this.$mentionCounts$inlined = map;
|
|
this.$unreadChannelIds$inlined = set;
|
|
this.$selectedGuildId$inlined = j2;
|
|
this.$areAnyChildThreadsSelected$5$inlined = widgetChannelListModel$Companion$guildListBuilder$5;
|
|
this.$collapsedCategories$inlined = set2;
|
|
this.$isThreadUnread$3$inlined = widgetChannelListModel$Companion$guildListBuilder$3;
|
|
this.$hiddenChannelsIds$inlined = hashSet2;
|
|
this.$areAllChildThreadsRead$4$inlined = widgetChannelListModel$Companion$guildListBuilder$4;
|
|
this.$selectedVoiceChannelId$inlined = j3;
|
|
this.$voiceStates$inlined = map2;
|
|
this.$channelsWithActiveThreads$inlined = set3;
|
|
this.$guildScheduledEvents$inlined = list;
|
|
this.$stageInstances$inlined = map3;
|
|
this.$stageChannels$inlined = map4;
|
|
this.$threadParentMap$inlined = map5;
|
|
this.$items$inlined = arrayList;
|
|
this.$tryRemoveEmptyCategory$2$inlined = widgetChannelListModel$Companion$guildListBuilder$2;
|
|
}
|
|
|
|
/* Return type fixed from 'java.util.Collection<com.discord.widgets.channels.list.items.ChannelListItemVoiceUser>' to match base method */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final Collection<? extends ChannelListItemVoiceUser> mo1invoke() {
|
|
Set<Long> set;
|
|
Collection collection = (Collection) this.$voiceStates$inlined.get(Long.valueOf(this.$channelId));
|
|
if (collection == null) {
|
|
return n.emptyList();
|
|
}
|
|
ArrayList arrayList = new ArrayList();
|
|
for (Object obj : collection) {
|
|
ChannelListItemVoiceUser channelListItemVoiceUser = (ChannelListItemVoiceUser) obj;
|
|
StageChannel stageChannel = (StageChannel) this.$stageChannels$inlined.get(Long.valueOf(this.$channelId));
|
|
if (stageChannel == null || (set = stageChannel.getSpeakerIds()) == null) {
|
|
set = n0.emptySet();
|
|
}
|
|
if (set.contains(Long.valueOf(channelListItemVoiceUser.getUser().getId()))) {
|
|
arrayList.add(obj);
|
|
}
|
|
}
|
|
return arrayList;
|
|
}
|
|
}
|