discord-jadx/app/src/main/java/com/discord/widgets/share/WidgetIncomingShare$onSendClicked$filter$2.java

31 lines
1.3 KiB
Java
Raw Normal View History

2021-08-03 07:33:18 +00:00
package com.discord.widgets.share;
import com.discord.api.channel.Channel;
2021-10-08 22:11:56 +00:00
import com.discord.api.channel.ChannelUtils;
2021-08-03 07:33:18 +00:00
import com.discord.models.user.User;
import com.discord.widgets.user.search.WidgetGlobalSearchModel;
2021-11-02 06:38:17 +00:00
import d0.z.d.o;
2021-08-03 07:33:18 +00:00
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetIncomingShare.kt */
2022-03-07 09:34:54 +00:00
/* loaded from: classes2.dex */
2021-08-03 07:33:18 +00:00
public final class WidgetIncomingShare$onSendClicked$filter$2 extends o implements Function1<Channel, Boolean> {
public final /* synthetic */ WidgetGlobalSearchModel.ItemDataPayload $receiver;
2022-03-07 09:34:54 +00:00
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
2021-08-03 07:33:18 +00:00
public WidgetIncomingShare$onSendClicked$filter$2(WidgetGlobalSearchModel.ItemDataPayload itemDataPayload) {
super(1);
this.$receiver = itemDataPayload;
}
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Boolean invoke(Channel channel) {
2022-03-07 09:34:54 +00:00
return Boolean.valueOf(invoke2(channel));
2021-08-03 07:33:18 +00:00
}
2022-03-07 09:34:54 +00:00
/* renamed from: invoke reason: avoid collision after fix types in other method */
public final boolean invoke2(Channel channel) {
2021-10-08 22:11:56 +00:00
User a;
return (channel == null || (a = ChannelUtils.a(channel)) == null || a.getId() != ((WidgetGlobalSearchModel.ItemUser) this.$receiver).getUser().getId()) ? false : true;
2021-08-03 07:33:18 +00:00
}
}