37 lines
1.0 KiB
Java
37 lines
1.0 KiB
Java
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;
|
|
|
|
// Lambda class made in WidgetChatList.createAdapter
|
|
@DexEdit
|
|
public class WidgetChatList$1 implements com.discord.widgets.chat.list.WidgetChatListAdapter.EventHandler {
|
|
|
|
// 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) {
|
|
|
|
}
|
|
|
|
// end of profilemention patch
|
|
|
|
}
|