discord-jadx/app/src/main/java/com/discord/widgets/chat/list/adapter/WidgetChatListAdapterEvents...

50 lines
2.9 KiB
Java

package com.discord.widgets.chat.list.adapter;
import com.discord.models.domain.emoji.Emoji;
import com.discord.widgets.chat.input.emoji.EmojiPickerContextType;
import com.discord.widgets.chat.input.emoji.EmojiPickerListener;
import com.discord.widgets.chat.input.emoji.EmojiPickerNavigator;
import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterEventsHandler;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetChatListAdapterEventsHandler.kt */
public final class WidgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1 extends o implements Function0<Unit> {
public final /* synthetic */ long $channelId;
public final /* synthetic */ long $messageId;
public final /* synthetic */ WidgetChatListAdapterEventsHandler this$0;
/* compiled from: WidgetChatListAdapterEventsHandler.kt */
/* renamed from: com.discord.widgets.chat.list.adapter.WidgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1$1 reason: invalid class name */
public static final class AnonymousClass1 implements EmojiPickerListener {
public final /* synthetic */ WidgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1 this$0;
public AnonymousClass1(WidgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1 widgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1) {
this.this$0 = widgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1;
}
@Override // com.discord.widgets.chat.input.emoji.EmojiPickerListener
public void onEmojiPicked(Emoji emoji) {
m.checkNotNullParameter(emoji, "emoji");
WidgetChatListAdapterEventsHandler.UserReactionHandler access$getUserReactionHandler$p = WidgetChatListAdapterEventsHandler.access$getUserReactionHandler$p(this.this$0.this$0);
WidgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1 widgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1 = this.this$0;
access$getUserReactionHandler$p.addNewReaction(emoji, widgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1.$channelId, widgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1.$messageId);
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChatListAdapterEventsHandler$onQuickAddReactionClicked$1(WidgetChatListAdapterEventsHandler widgetChatListAdapterEventsHandler, long j, long j2) {
super(0);
this.this$0 = widgetChatListAdapterEventsHandler;
this.$channelId = j;
this.$messageId = j2;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
EmojiPickerNavigator.launchBottomSheet$default(WidgetChatListAdapterEventsHandler.access$getFragmentManager$p(this.this$0), new AnonymousClass1(this), EmojiPickerContextType.Chat.INSTANCE, null, 8, null);
}
}