37 lines
1.6 KiB
Java
37 lines
1.6 KiB
Java
|
package com.discord.widgets.user.search;
|
||
|
|
||
|
import c.d.b.a.a;
|
||
|
import com.discord.api.channel.Channel;
|
||
|
import com.discord.utilities.permissions.PermissionUtils;
|
||
|
import com.discord.widgets.user.search.WidgetGlobalSearchModel;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: WidgetGlobalSearchModel.kt */
|
||
|
public final class WidgetGlobalSearchModel$Companion$create$filteredResults$6 extends o implements Function1<Channel, Boolean> {
|
||
|
public final /* synthetic */ WidgetGlobalSearchModel.ChannelContext $channelContext;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetGlobalSearchModel$Companion$create$filteredResults$6(WidgetGlobalSearchModel.ChannelContext channelContext) {
|
||
|
super(1);
|
||
|
this.$channelContext = channelContext;
|
||
|
}
|
||
|
|
||
|
/* 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) {
|
||
|
m.checkNotNullParameter(channel, "it");
|
||
|
long o0 = a.o0(channel, this.$channelContext.getChannelPerms());
|
||
|
if (o0 == null) {
|
||
|
o0 = 0L;
|
||
|
}
|
||
|
long longValue = ((Number) o0).longValue();
|
||
|
return PermissionUtils.can(1024, Long.valueOf(longValue)) && PermissionUtils.can(1048576, Long.valueOf(longValue));
|
||
|
}
|
||
|
}
|