38 lines
973 B
Java
38 lines
973 B
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;
|
|
|
|
@DexEdit(target = "WidgetChatList$1")
|
|
public class WidgetChatList$1 {
|
|
|
|
// start of profilemention patch
|
|
|
|
// TODO verify patched correctly
|
|
@DexWrap
|
|
public void onMessageAuthorAvatarClicked(@NonNull ModelMessage modelMessage, long j) {
|
|
if (!PatchConfig.PROFILEMENTION_ENABLED) {
|
|
// Patch not enabled
|
|
onMessageAuthorAvatarClicked(modelMessage, j);
|
|
return;
|
|
}
|
|
|
|
onMessageAuthorNameClicked(modelMessage, j);
|
|
}
|
|
|
|
// end of profilemention patch
|
|
|
|
@DexIgnore
|
|
public void onMessageAuthorNameClicked(@NonNull ModelMessage modelMessage, long j) {
|
|
|
|
}
|
|
|
|
}
|