CTCV2/app/src/main/java/com/discord/widgets/chat/list/WidgetChatList$1.java

37 lines
1.0 KiB
Java
Raw Normal View History

2020-12-21 22:29:15 +00:00
package com.discord.widgets.chat.list;
import androidx.annotation.NonNull;
import com.PatchConfig;
import com.discord.models.domain.ModelMessage;
import lanchon.dexpatcher.annotation.DexEdit;
import lanchon.dexpatcher.annotation.DexIgnore;
import lanchon.dexpatcher.annotation.DexReplace;
import lanchon.dexpatcher.annotation.DexWrap;
2020-12-25 23:51:17 +00:00
// Lambda class made in WidgetChatList.createAdapter
@DexEdit
public class WidgetChatList$1 implements com.discord.widgets.chat.list.WidgetChatListAdapter.EventHandler {
2020-12-21 22:29:15 +00:00
// start of profilemention patch
@DexWrap
public void onMessageAuthorAvatarClicked(@NonNull ModelMessage modelMessage, long j) {
if (!PatchConfig.PROFILEMENTION_ENABLED) {
// Patch not enabled
onMessageAuthorAvatarClicked(modelMessage, j);
return;
}
onMessageAuthorNameClicked(modelMessage, j);
}
@DexIgnore
public void onMessageAuthorNameClicked(@NonNull ModelMessage modelMessage, long j) {
}
2020-12-25 23:51:17 +00:00
// end of profilemention patch
2020-12-21 22:29:15 +00:00
}