discord-jadx/app/src/main/java/com/discord/stores/StoreUserGuildSettings$setC...

39 lines
2.2 KiB
Java

package com.discord.stores;
import android.content.Context;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.discord.api.channel.Channel;
import com.discord.models.domain.ModelMuteConfig;
import com.discord.restapi.RestAPIParams;
import com.discord.stores.StoreUserGuildSettings;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreUserGuildSettings.kt */
public final class StoreUserGuildSettings$setChannelMuted$1 extends o implements Function0<Unit> {
public final /* synthetic */ long $channelId;
public final /* synthetic */ Context $context;
public final /* synthetic */ ModelMuteConfig $muteConfig;
public final /* synthetic */ boolean $muted;
public final /* synthetic */ StoreUserGuildSettings this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreUserGuildSettings$setChannelMuted$1(StoreUserGuildSettings storeUserGuildSettings, long j, Context context, boolean z2, ModelMuteConfig modelMuteConfig) {
super(0);
this.this$0 = storeUserGuildSettings;
this.$channelId = j;
this.$context = context;
this.$muted = z2;
this.$muteConfig = modelMuteConfig;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
Channel findChannelByIdInternal$app_productionBetaRelease = StoreUserGuildSettings.access$getStoreChannels$p(this.this$0).findChannelByIdInternal$app_productionBetaRelease(this.$channelId);
if (findChannelByIdInternal$app_productionBetaRelease != null) {
StoreUserGuildSettings.access$updateUserGuildSettings(this.this$0, this.$context, findChannelByIdInternal$app_productionBetaRelease.f(), new RestAPIParams.UserGuildSettings(findChannelByIdInternal$app_productionBetaRelease.h(), new RestAPIParams.UserGuildSettings.ChannelOverride(Boolean.valueOf(this.$muted), this.$muteConfig, null, 4, null)), AnimatableValueParser.y1(findChannelByIdInternal$app_productionBetaRelease) ? StoreUserGuildSettings.SettingsUpdateType.CHANNEL : StoreUserGuildSettings.SettingsUpdateType.CATEGORY);
}
}
}