discord-jadx/app/src/main/java/com/discord/stores/StoreSearchData$getChannelS...

35 lines
1.4 KiB
Java

package com.discord.stores;
import com.discord.api.channel.Channel;
import com.discord.models.member.GuildMember;
import com.discord.models.user.MeUser;
import com.discord.utilities.search.validation.SearchData;
import d0.t.h0;
import d0.z.d.o;
import java.util.Map;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreSearchData.kt */
public final class StoreSearchData$getChannelSearchData$1 extends o implements Function0<SearchData> {
public final /* synthetic */ long $channelId;
public final /* synthetic */ StoreSearchData this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreSearchData$getChannelSearchData$1(StoreSearchData storeSearchData, long j) {
super(0);
this.this$0 = storeSearchData;
this.$channelId = j;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final SearchData mo1invoke() {
Channel channel = StoreSearchData.access$getStoreChannels$p(this.this$0).getChannel(this.$channelId);
MeUser me2 = StoreSearchData.access$getStoreUser$p(this.this$0).getMe();
Map<Long, GuildMember> map = StoreSearchData.access$getStoreGuilds$p(this.this$0).getMembers().get(channel != null ? Long.valueOf(channel.f()) : null);
if (map == null) {
map = h0.emptyMap();
}
return new SearchData.Builder().buildForChannel(channel, me2, map);
}
}