discord-jadx/app/src/main/java/com/discord/widgets/guilds/list/WidgetGuildsListViewModel$c...

35 lines
1.7 KiB
Java

package com.discord.widgets.guilds.list;
import com.discord.api.channel.Channel;
import com.discord.models.domain.ModelNotificationSettings;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Map;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetGuildsListViewModel.kt */
public final class WidgetGuildsListViewModel$createDirectMessageItems$1 extends o implements Function1<Channel, Boolean> {
public final /* synthetic */ ModelNotificationSettings $dmSettings;
public final /* synthetic */ Map $mentionCounts;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetGuildsListViewModel$createDirectMessageItems$1(ModelNotificationSettings modelNotificationSettings, Map map) {
super(1);
this.$dmSettings = modelNotificationSettings;
this.$mentionCounts = map;
}
/* 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 */ Boolean invoke(Channel channel) {
return Boolean.valueOf(invoke(channel));
}
public final boolean invoke(Channel channel) {
ModelNotificationSettings modelNotificationSettings;
ModelNotificationSettings.ChannelOverride channelOverride;
m.checkNotNullParameter(channel, "channel");
return this.$mentionCounts.containsKey(Long.valueOf(channel.h())) && ((modelNotificationSettings = this.$dmSettings) == null || (channelOverride = modelNotificationSettings.getChannelOverride(channel.h())) == null || !channelOverride.isMuted());
}
}