35 lines
801 B
Java
35 lines
801 B
Java
package com.discord.utilities.rest;
|
|
|
|
import com.discord.stores.StoreStream;
|
|
|
|
import lanchon.dexpatcher.annotation.DexAdd;
|
|
import lanchon.dexpatcher.annotation.DexEdit;
|
|
import lanchon.dexpatcher.annotation.DexIgnore;
|
|
import rx.Emitter;
|
|
import rx.functions.Action1;
|
|
|
|
@DexEdit
|
|
public final class SendUtils$getPart$1<T> implements Action1<Emitter<SendUtils.FileUpload>> {
|
|
|
|
// supplemental patch
|
|
|
|
@DexAdd
|
|
public static final String interceptFilename(String str) {
|
|
if (!StoreStream.getUserSettings().getImageSpoiler()) {
|
|
return str;
|
|
}
|
|
return "SPOILER_" + str;
|
|
}
|
|
|
|
// TODO see if theres a way to target the lambda directly..
|
|
@DexIgnore
|
|
@Override
|
|
public final void call(Emitter<SendUtils.FileUpload> emitter) {
|
|
|
|
}
|
|
|
|
|
|
// end
|
|
|
|
}
|