discord-jadx/app/src/main/java/com/discord/widgets/channels/permissions/WidgetChannelSettingsPermis...

27 lines
1.5 KiB
Java

package com.discord.widgets.channels.permissions;
import com.discord.api.channel.Channel;
import com.discord.app.AppViewModel;
import com.discord.stores.StoreStream;
import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsOverviewViewModel;
import d0.z.d.o;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetChannelSettingsPermissionsOverview.kt */
public final class WidgetChannelSettingsPermissionsOverview$viewModel$2 extends o implements Function0<AppViewModel<WidgetChannelSettingsPermissionsOverviewViewModel.ViewState>> {
public final /* synthetic */ WidgetChannelSettingsPermissionsOverview this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelSettingsPermissionsOverview$viewModel$2(WidgetChannelSettingsPermissionsOverview widgetChannelSettingsPermissionsOverview) {
super(0);
this.this$0 = widgetChannelSettingsPermissionsOverview;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final AppViewModel<WidgetChannelSettingsPermissionsOverviewViewModel.ViewState> mo1invoke() {
long access$getChannelIdFromIntent = WidgetChannelSettingsPermissionsOverview.access$getChannelIdFromIntent(this.this$0);
Channel channel = StoreStream.Companion.getChannels().getChannel(access$getChannelIdFromIntent);
return new WidgetChannelSettingsPermissionsOverviewViewModel(access$getChannelIdFromIntent, channel != null && channel.A() == 13);
}
}