22 lines
1.3 KiB
Java
22 lines
1.3 KiB
Java
package com.discord.widgets.chat.input;
|
|
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.models.commands.ApplicationCommand;
|
|
import com.discord.stores.StoreChannelsSelected;
|
|
import com.discord.stores.StoreStream;
|
|
import d0.t.n;
|
|
import j0.k.b;
|
|
import j0.l.e.j;
|
|
import java.util.List;
|
|
import rx.Observable;
|
|
/* compiled from: WidgetChatInputAutocomplete.kt */
|
|
public final class WidgetChatInputAutocomplete$configureDataSubscriptions$3<T, R> implements b<StoreChannelsSelected.ResolvedSelectedChannel, Observable<? extends List<? extends ApplicationCommand>>> {
|
|
public static final WidgetChatInputAutocomplete$configureDataSubscriptions$3 INSTANCE = new WidgetChatInputAutocomplete$configureDataSubscriptions$3();
|
|
|
|
public final Observable<? extends List<ApplicationCommand>> call(StoreChannelsSelected.ResolvedSelectedChannel resolvedSelectedChannel) {
|
|
Channel channelOrParent = resolvedSelectedChannel.getChannelOrParent();
|
|
return (channelOrParent == null || !(resolvedSelectedChannel instanceof StoreChannelsSelected.ResolvedSelectedChannel.Channel) || AnimatableValueParser.e1(channelOrParent)) ? new j(n.emptyList()) : StoreStream.Companion.getApplicationCommands().observeQueryCommands(channelOrParent.h());
|
|
}
|
|
}
|