discord-jadx/app/src/main/java/com/discord/widgets/chat/input/ChatInputViewModel$createAn...

41 lines
1.7 KiB
Java

package com.discord.widgets.chat.input;
import com.discord.api.channel.Channel;
import com.discord.stores.StoreStream;
import com.discord.utilities.channel.ChannelSelector;
import com.discord.widgets.chat.input.ChatInputViewModel;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: ChatInputViewModel.kt */
public final class ChatInputViewModel$createAndGotoThread$2 extends o implements Function1<Channel, Unit> {
public final /* synthetic */ ChatInputViewModel.ViewState.Loaded $loadedViewState;
public final /* synthetic */ Function1 $onThreadCreated;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public ChatInputViewModel$createAndGotoThread$2(ChatInputViewModel.ViewState.Loaded loaded, Function1 function1) {
super(1);
this.$loadedViewState = loaded;
this.$onThreadCreated = function1;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(Channel channel) {
invoke(channel);
return Unit.a;
}
public final void invoke(Channel channel) {
if (channel != null) {
StoreStream.Companion.getSlowMode().onThreadCreated(this.$loadedViewState.getChannelId());
Function1 function1 = this.$onThreadCreated;
if (function1 != null) {
function1.invoke(channel);
}
ChannelSelector.selectChannel$default(ChannelSelector.Companion.getInstance(), channel, null, null, 6, null);
}
}
}