discord-jadx/app/src/main/java/com/discord/widgets/channels/settings/ChannelGroupDMSettingsViewM...

40 lines
2.1 KiB
Java

package com.discord.widgets.channels.settings;
import com.discord.api.channel.Channel;
import com.discord.utilities.icon.IconUtils;
import com.discord.widgets.channels.settings.ChannelGroupDMSettingsViewModel;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import rx.subjects.PublishSubject;
/* compiled from: ChannelGroupDMSettingsViewModel.kt */
public final class ChannelGroupDMSettingsViewModel$editGroup$1 extends o implements Function1<Channel, Unit> {
public final /* synthetic */ ChannelGroupDMSettingsViewModel.ViewState.Valid $viewState;
public final /* synthetic */ ChannelGroupDMSettingsViewModel this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public ChannelGroupDMSettingsViewModel$editGroup$1(ChannelGroupDMSettingsViewModel channelGroupDMSettingsViewModel, ChannelGroupDMSettingsViewModel.ViewState.Valid valid) {
super(1);
this.this$0 = channelGroupDMSettingsViewModel;
this.$viewState = valid;
}
/* 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) {
m.checkNotNullParameter(channel, "it");
PublishSubject access$getEventSubject$p = ChannelGroupDMSettingsViewModel.access$getEventSubject$p(this.this$0);
access$getEventSubject$p.j.onNext(ChannelGroupDMSettingsViewModel.Event.SettingsSaved.INSTANCE);
ChannelGroupDMSettingsViewModel channelGroupDMSettingsViewModel = this.this$0;
ChannelGroupDMSettingsViewModel.ViewState.Valid valid = this.$viewState;
ChannelGroupDMSettingsViewModel.access$updateViewState(channelGroupDMSettingsViewModel, valid.copy(ChannelSettings.copy$default(valid.getChannelSettings(), channel, false, null, 6, null), IconUtils.getForChannel(channel, null), IconUtils.getForChannel(channel, null)));
}
}