21 lines
1.2 KiB
Java
21 lines
1.2 KiB
Java
package com.discord.widgets.chat.input;
|
|
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.stores.DiscoverCommands;
|
|
import com.discord.widgets.chat.input.autocomplete.sources.ApplicationCommandsAutocompletableSource;
|
|
import d0.t.n;
|
|
import d0.z.d.m;
|
|
import j0.k.b;
|
|
import j0.l.e.j;
|
|
import rx.Observable;
|
|
/* compiled from: WidgetChatInputAutocomplete.kt */
|
|
public final class WidgetChatInputAutocomplete$configureDataSubscriptions$5<T, R> implements b<Channel, Observable<? extends WidgetChatInputDiscoveryCommandsModel>> {
|
|
public static final WidgetChatInputAutocomplete$configureDataSubscriptions$5 INSTANCE = new WidgetChatInputAutocomplete$configureDataSubscriptions$5();
|
|
|
|
public final Observable<? extends WidgetChatInputDiscoveryCommandsModel> call(Channel channel) {
|
|
m.checkNotNullExpressionValue(channel, "channel");
|
|
return AnimatableValueParser.e1(channel) ? new j(WidgetChatInputDiscoveryCommandsModel.Companion.parseModelDiscoveryCommands(n.emptyList(), DiscoverCommands.Companion.getDefaultModelDiscoveryCommands(), true, 3)) : ApplicationCommandsAutocompletableSource.Companion.getDiscoveryCommands(true, 3, channel.h());
|
|
}
|
|
}
|