178 lines
8.6 KiB
Java
178 lines
8.6 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.domain.ModelMessage;
|
||
|
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(ModelMessage modelMessage) {
|
||
|
StoreStream.Companion companion = StoreStream.Companion;
|
||
|
companion.getMessagesLoader().jumpToMessage(modelMessage.getChannelId(), modelMessage.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(ModelMessage modelMessage) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
WidgetChatListAdapter.EventHandler.DefaultImpls.onDismissClicked(this, modelMessage);
|
||
|
}
|
||
|
|
||
|
@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(ModelMessage modelMessage, long j) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
jumpToMessage(modelMessage);
|
||
|
}
|
||
|
|
||
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
||
|
public void onMessageAuthorLongClicked(ModelMessage modelMessage, Long l) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
jumpToMessage(modelMessage);
|
||
|
}
|
||
|
|
||
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
||
|
public void onMessageAuthorNameClicked(ModelMessage modelMessage, long j) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
jumpToMessage(modelMessage);
|
||
|
}
|
||
|
|
||
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
||
|
public void onMessageBlockedGroupClicked(ModelMessage modelMessage) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
jumpToMessage(modelMessage);
|
||
|
}
|
||
|
|
||
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
||
|
public void onMessageClicked(ModelMessage modelMessage, boolean z2) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
jumpToMessage(modelMessage);
|
||
|
}
|
||
|
|
||
|
@Override // com.discord.widgets.chat.list.adapter.WidgetChatListAdapter.EventHandler
|
||
|
public void onMessageLongClicked(ModelMessage modelMessage, CharSequence charSequence, boolean z2) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
m.checkNotNullParameter(charSequence, "formattedMessage");
|
||
|
jumpToMessage(modelMessage);
|
||
|
}
|
||
|
|
||
|
@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(ModelMessage modelMessage) {
|
||
|
m.checkNotNullParameter(modelMessage, "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(ModelMessage modelMessage, BaseSticker baseSticker) {
|
||
|
m.checkNotNullParameter(modelMessage, "message");
|
||
|
m.checkNotNullParameter(baseSticker, "sticker");
|
||
|
StoreStream.Companion.getMessagesLoader().jumpToMessage(modelMessage.getChannelId(), modelMessage.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);
|
||
|
}
|
||
|
}
|