2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.widgets.channels;
|
|
|
|
|
|
|
|
import com.discord.models.user.User;
|
|
|
|
import com.discord.widgets.channels.WidgetGroupInviteFriends;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function2;
|
|
|
|
/* compiled from: WidgetGroupInviteFriends.kt */
|
|
|
|
public final class WidgetGroupInviteFriends$configureUI$1 extends o implements Function2<User, Boolean, Unit> {
|
|
|
|
public final /* synthetic */ WidgetGroupInviteFriends.Model $data;
|
|
|
|
public final /* synthetic */ WidgetGroupInviteFriends this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetGroupInviteFriends$configureUI$1(WidgetGroupInviteFriends widgetGroupInviteFriends, WidgetGroupInviteFriends.Model model) {
|
|
|
|
super(2);
|
|
|
|
this.this$0 = widgetGroupInviteFriends;
|
|
|
|
this.$data = model;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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, java.lang.Object] */
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
|
|
public /* bridge */ /* synthetic */ Unit invoke(User user, Boolean bool) {
|
|
|
|
invoke(user, bool.booleanValue());
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void invoke(User user, boolean z2) {
|
|
|
|
m.checkNotNullParameter(user, "user");
|
|
|
|
if (!z2) {
|
|
|
|
WidgetGroupInviteFriends.access$unselectUser(this.this$0, user);
|
|
|
|
} else if (this.$data.getTotalNumRecipients() >= this.$data.getMaxGroupMemberCount()) {
|
2021-07-13 20:23:20 +00:00
|
|
|
c.a.d.o.i(this.this$0, 2131889149, 0, 4);
|
2021-06-27 20:44:35 +00:00
|
|
|
} else {
|
|
|
|
WidgetGroupInviteFriends.access$selectUser(this.this$0, user);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|