discord-jadx/app/src/main/java/com/discord/stores/StoreStageChannels$observeG...

39 lines
1.8 KiB
Java

package com.discord.stores;
import com.discord.api.channel.Channel;
import com.discord.api.voice.state.VoiceState;
import com.discord.models.user.User;
import com.discord.widgets.stage.model.StageChannel;
import d0.t.h0;
import d0.z.d.o;
import java.util.Map;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreStageChannels.kt */
public final class StoreStageChannels$observeGuildStageChannels$1 extends o implements Function0<Map<Long, ? extends StageChannel>> {
public final /* synthetic */ long $guildId;
public final /* synthetic */ StoreStageChannels this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreStageChannels$observeGuildStageChannels$1(StoreStageChannels storeStageChannels, long j) {
super(0);
this.this$0 = storeStageChannels;
this.$guildId = j;
}
/* Return type fixed from 'java.util.Map<java.lang.Long, com.discord.widgets.stage.model.StageChannel>' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final Map<Long, ? extends StageChannel> mo1invoke() {
StoreStageChannels storeStageChannels = this.this$0;
long j = this.$guildId;
Map<Long, Channel> channelsForGuild = StoreStageChannels.access$getChannelsStore$p(storeStageChannels).getChannelsForGuild(this.$guildId);
long id2 = StoreStageChannels.access$getUserStore$p(this.this$0).getMe().getId();
Map<Long, User> users = StoreStageChannels.access$getUserStore$p(this.this$0).getUsers();
Map<Long, VoiceState> map = StoreStageChannels.access$getVoiceStatesStore$p(this.this$0).get().get(Long.valueOf(this.$guildId));
if (map == null) {
map = h0.emptyMap();
}
return storeStageChannels.getStageChannelsInGuild(j, channelsForGuild, id2, users, map);
}
}