178 lines
8.4 KiB
Java
178 lines
8.4 KiB
Java
package com.discord.widgets.user;
|
|
|
|
import android.net.Uri;
|
|
import com.discord.api.activity.Activity;
|
|
import com.discord.api.application.Application;
|
|
import com.discord.api.channel.Channel;
|
|
import com.discord.api.message.activity.MessageActivityType;
|
|
import com.discord.api.message.reaction.MessageReaction;
|
|
import com.discord.api.sticker.BaseSticker;
|
|
import com.discord.api.sticker.Sticker;
|
|
import com.discord.models.message.Message;
|
|
import com.discord.restapi.RestAPIParams;
|
|
import com.discord.stores.StoreChat;
|
|
import com.discord.stores.StoreNavigation;
|
|
import com.discord.stores.StoreStream;
|
|
import com.discord.widgets.chat.list.adapter.WidgetChatListAdapter;
|
|
import com.discord.widgets.chat.list.adapter.WidgetChatListAdapterItemCallMessage;
|
|
import d0.z.d.m;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetUserMentions.kt */
|
|
public final class WidgetUserMentions$createAdapter$1 implements WidgetChatListAdapter.EventHandler {
|
|
public final /* synthetic */ Function1 $onInteractionStateUpdated;
|
|
public final /* synthetic */ WidgetUserMentions this$0;
|
|
|
|
public WidgetUserMentions$createAdapter$1(WidgetUserMentions widgetUserMentions, Function1 function1) {
|
|
this.this$0 = widgetUserMentions;
|
|
this.$onInteractionStateUpdated = function1;
|
|
}
|
|
|
|
private final void jumpToMessage(Message message) {
|
|
StoreStream.Companion companion = StoreStream.Companion;
|
|
companion.getMessagesLoader().jumpToMessage(message.getChannelId(), message.getId());
|
|
companion.getTabsNavigation().selectHomeTab(StoreNavigation.PanelAction.CLOSE, WidgetUserMentions.access$isEmbedded$p(this.this$0));
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onBotUiComponentClicked(long j, Long l, long j2, long j3, Long l2, int i, RestAPIParams.ComponentInteractionData componentInteractionData) {
|
|
m.checkNotNullParameter(componentInteractionData, "componentSendData");
|
|
WidgetChatListAdapter.EventHandler.DefaultImpls.onBotUiComponentClicked(this, j, l, j2, j3, l2, i, componentInteractionData);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onCallMessageClicked(long j, WidgetChatListAdapterItemCallMessage.CallStatus callStatus) {
|
|
m.checkNotNullParameter(callStatus, "callStatus");
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onCommandClicked(long j, Long l, long j2, long j3, long j4, long j5, String str) {
|
|
WidgetChatListAdapter.EventHandler.DefaultImpls.onCommandClicked(this, j, l, j2, j3, j4, j5, str);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onDismissClicked(Message message) {
|
|
m.checkNotNullParameter(message, "message");
|
|
WidgetChatListAdapter.EventHandler.DefaultImpls.onDismissClicked(this, message);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onInteractionStateUpdated(StoreChat.InteractionState interactionState) {
|
|
m.checkNotNullParameter(interactionState, "interactionState");
|
|
this.$onInteractionStateUpdated.invoke(interactionState);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onListClicked() {
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onMessageAuthorAvatarClicked(Message message, long j) {
|
|
m.checkNotNullParameter(message, "message");
|
|
jumpToMessage(message);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onMessageAuthorLongClicked(Message message, Long l) {
|
|
m.checkNotNullParameter(message, "message");
|
|
jumpToMessage(message);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onMessageAuthorNameClicked(Message message, long j) {
|
|
m.checkNotNullParameter(message, "message");
|
|
jumpToMessage(message);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onMessageBlockedGroupClicked(Message message) {
|
|
m.checkNotNullParameter(message, "message");
|
|
jumpToMessage(message);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onMessageClicked(Message message, boolean z2) {
|
|
m.checkNotNullParameter(message, "message");
|
|
jumpToMessage(message);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onMessageLongClicked(Message message, CharSequence charSequence, boolean z2) {
|
|
m.checkNotNullParameter(message, "message");
|
|
m.checkNotNullParameter(charSequence, "formattedMessage");
|
|
jumpToMessage(message);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onOldestMessageId(long j, long j2) {
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onOpenPinsClicked(Message message) {
|
|
m.checkNotNullParameter(message, "message");
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onQuickAddReactionClicked(long j, long j2, long j3, long j4) {
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public boolean onQuickDownloadClicked(Uri uri, String str) {
|
|
m.checkNotNullParameter(uri, "uri");
|
|
m.checkNotNullParameter(str, "fileName");
|
|
return false;
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onReactionClicked(long j, long j2, long j3, long j4, MessageReaction messageReaction, boolean z2) {
|
|
m.checkNotNullParameter(messageReaction, "reaction");
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onReactionLongClicked(long j, long j2, long j3, MessageReaction messageReaction) {
|
|
m.checkNotNullParameter(messageReaction, "reaction");
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onSendGreetMessageClicked(long j, int i, Sticker sticker) {
|
|
m.checkNotNullParameter(sticker, "sticker");
|
|
WidgetChatListAdapter.EventHandler.DefaultImpls.onSendGreetMessageClicked(this, j, i, sticker);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onStickerClicked(Message message, BaseSticker baseSticker) {
|
|
m.checkNotNullParameter(message, "message");
|
|
m.checkNotNullParameter(baseSticker, "sticker");
|
|
StoreStream.Companion.getMessagesLoader().jumpToMessage(message.getChannelId(), message.getId());
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onThreadClicked(Channel channel) {
|
|
m.checkNotNullParameter(channel, "channel");
|
|
WidgetChatListAdapter.EventHandler.DefaultImpls.onThreadClicked(this, channel);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onThreadLongClicked(Channel channel) {
|
|
m.checkNotNullParameter(channel, "channel");
|
|
WidgetChatListAdapter.EventHandler.DefaultImpls.onThreadLongClicked(this, channel);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onUrlLongClicked(String str) {
|
|
m.checkNotNullParameter(str, "url");
|
|
WidgetChatListAdapter.EventHandler.DefaultImpls.onUrlLongClicked(this, str);
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onUserActivityAction(long j, long j2, long j3, MessageActivityType messageActivityType, Activity activity, Application application) {
|
|
m.checkNotNullParameter(messageActivityType, "actionType");
|
|
m.checkNotNullParameter(activity, "activity");
|
|
m.checkNotNullParameter(application, "application");
|
|
}
|
|
|
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
|
public void onUserMentionClicked(long j, long j2, long j3) {
|
|
WidgetChatListAdapter.EventHandler.DefaultImpls.onUserMentionClicked(this, j, j2, j3);
|
|
}
|
|
}
|