2021-08-09 22:50:52 +00:00
|
|
|
package com.discord.widgets.chat.overlay;
|
|
|
|
|
|
|
|
import com.discord.stores.StoreChannelsSelected;
|
|
|
|
import com.discord.widgets.chat.overlay.ChatTypingModel;
|
2021-11-01 07:19:03 +00:00
|
|
|
import j0.k.b;
|
2021-12-17 22:01:24 +00:00
|
|
|
import j0.l.e.k;
|
2021-08-09 22:50:52 +00:00
|
|
|
import rx.Observable;
|
|
|
|
/* compiled from: ChatTypingModel.kt */
|
|
|
|
public final class ChatTypingModel$Companion$get$1<T, R> implements b<StoreChannelsSelected.ResolvedSelectedChannel, Observable<? extends ChatTypingModel>> {
|
|
|
|
public static final ChatTypingModel$Companion$get$1 INSTANCE = new ChatTypingModel$Companion$get$1();
|
|
|
|
|
|
|
|
public final Observable<? extends ChatTypingModel> call(StoreChannelsSelected.ResolvedSelectedChannel resolvedSelectedChannel) {
|
2021-12-17 22:01:24 +00:00
|
|
|
return resolvedSelectedChannel instanceof StoreChannelsSelected.ResolvedSelectedChannel.Channel ? ChatTypingModel.Companion.access$getTypingObservableForChannel(ChatTypingModel.Companion, ((StoreChannelsSelected.ResolvedSelectedChannel.Channel) resolvedSelectedChannel).getChannel()) : resolvedSelectedChannel instanceof StoreChannelsSelected.ResolvedSelectedChannel.ThreadDraft ? ChatTypingModel.Companion.access$getTypingObservableForDraft(ChatTypingModel.Companion, ((StoreChannelsSelected.ResolvedSelectedChannel.ThreadDraft) resolvedSelectedChannel).getParentChannel()) : new k(ChatTypingModel.Hide.INSTANCE);
|
2021-08-09 22:50:52 +00:00
|
|
|
}
|
|
|
|
}
|