46 lines
2.0 KiB
Java
46 lines
2.0 KiB
Java
|
package com.discord.widgets.chat.input;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.View;
|
||
|
import androidx.fragment.app.FragmentManager;
|
||
|
import com.discord.utilities.guilds.MemberVerificationUtils;
|
||
|
import com.discord.widgets.chat.input.ChatInputViewModel;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
/* compiled from: WidgetChatInput.kt */
|
||
|
public final class WidgetChatInput$configureChatGuard$1 implements View.OnClickListener {
|
||
|
public final /* synthetic */ ChatInputViewModel.ViewState.Loaded $viewState;
|
||
|
public final /* synthetic */ WidgetChatInput this$0;
|
||
|
|
||
|
/* compiled from: WidgetChatInput.kt */
|
||
|
/* renamed from: com.discord.widgets.chat.input.WidgetChatInput$configureChatGuard$1$1 reason: invalid class name */
|
||
|
public static final class AnonymousClass1 extends o implements Function0<Unit> {
|
||
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
||
|
|
||
|
public AnonymousClass1() {
|
||
|
super(0);
|
||
|
}
|
||
|
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
/* renamed from: invoke */
|
||
|
public final void mo1invoke() {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public WidgetChatInput$configureChatGuard$1(WidgetChatInput widgetChatInput, ChatInputViewModel.ViewState.Loaded loaded) {
|
||
|
this.this$0 = widgetChatInput;
|
||
|
this.$viewState = loaded;
|
||
|
}
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
MemberVerificationUtils memberVerificationUtils = MemberVerificationUtils.INSTANCE;
|
||
|
Context requireContext = this.this$0.requireContext();
|
||
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
||
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
||
|
MemberVerificationUtils.maybeShowVerificationGate$default(memberVerificationUtils, requireContext, parentFragmentManager, this.$viewState.getChannel().f(), "Guild Channel", null, AnonymousClass1.INSTANCE, 16, null);
|
||
|
}
|
||
|
}
|