package com.discord.widgets.chat.list.model; import com.discord.api.channel.ChannelUtils; import com.discord.stores.StoreChannelsSelected; import com.discord.widgets.chat.list.model.WidgetChatListModel; import j0.k.b; import j0.l.e.j; import rx.Observable; /* compiled from: WidgetChatListModel.kt */ public final class WidgetChatListModel$Companion$get$1 implements b> { public static final WidgetChatListModel$Companion$get$1 INSTANCE = new WidgetChatListModel$Companion$get$1(); public final Observable call(StoreChannelsSelected.ResolvedSelectedChannel resolvedSelectedChannel) { if (resolvedSelectedChannel instanceof StoreChannelsSelected.ResolvedSelectedChannel.Channel) { StoreChannelsSelected.ResolvedSelectedChannel.Channel channel = (StoreChannelsSelected.ResolvedSelectedChannel.Channel) resolvedSelectedChannel; return ChannelUtils.o(channel.getChannel()) ? new j(null) : WidgetChatListModel.Companion.access$getChannel(WidgetChatListModel.Companion, channel.getChannel()); } else if (!(resolvedSelectedChannel instanceof StoreChannelsSelected.ResolvedSelectedChannel.ThreadDraft)) { return new j(null); } else { StoreChannelsSelected.ResolvedSelectedChannel.ThreadDraft threadDraft = (StoreChannelsSelected.ResolvedSelectedChannel.ThreadDraft) resolvedSelectedChannel; return WidgetChatListModel.Companion.access$getThreadDraft(WidgetChatListModel.Companion, threadDraft.getParentChannel(), threadDraft.getStarterMessageId()); } } }