2021-12-17 21:59:34 +00:00
|
|
|
package b.a.a;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
2022-03-12 00:35:13 +00:00
|
|
|
import b.a.a.x;
|
|
|
|
import com.discord.models.user.User;
|
2021-11-02 06:38:17 +00:00
|
|
|
import d0.z.d.m;
|
2022-03-12 00:35:13 +00:00
|
|
|
import d0.z.d.o;
|
|
|
|
import java.util.Objects;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
2021-07-24 02:37:17 +00:00
|
|
|
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
|
2022-03-07 09:34:54 +00:00
|
|
|
/* loaded from: classes.dex */
|
2022-03-12 00:35:13 +00:00
|
|
|
public final class v extends o implements Function1<x.c, Unit> {
|
|
|
|
public final /* synthetic */ x this$0;
|
2021-08-03 07:33:18 +00:00
|
|
|
|
2022-03-12 00:35:13 +00:00
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
|
|
public v(x xVar) {
|
|
|
|
super(1);
|
|
|
|
this.this$0 = xVar;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
|
|
public Unit invoke(x.c cVar) {
|
|
|
|
x.c cVar2 = cVar;
|
|
|
|
m.checkNotNullParameter(cVar2, "storeState");
|
|
|
|
x xVar = this.this$0;
|
|
|
|
Objects.requireNonNull(xVar);
|
|
|
|
User user = cVar2.a;
|
|
|
|
x.d viewState = xVar.getViewState();
|
|
|
|
xVar.updateViewState(new x.d(Integer.valueOf(user.getFlags()), viewState == null ? false : viewState.f50b));
|
|
|
|
return Unit.a;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|