package com.discord.widgets.user.search; 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: WidgetGlobalSearchGuildsModel.kt */ public final class WidgetGlobalSearchGuildsModel$Companion$asDirectMessageItems$1 extends o implements Function1 { 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 WidgetGlobalSearchGuildsModel$Companion$asDirectMessageItems$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, "it"); return this.$mentionCounts.containsKey(Long.valueOf(channel.h())) && ((modelNotificationSettings = this.$dmSettings) == null || (channelOverride = modelNotificationSettings.getChannelOverride(channel.h())) == null || !channelOverride.isMuted()); } }