package com.discord.models.domain; import com.PatchConfig; import com.discord.stores.StoreStream; import com.discordtest.BuildConfig; import java.io.IOException; import lanchon.dexpatcher.annotation.DexEdit; import lanchon.dexpatcher.annotation.DexIgnore; import lanchon.dexpatcher.annotation.DexReplace; import lanchon.dexpatcher.annotation.DexWrap; @DexEdit public class ModelMessageEmbed implements Model { // nospoiler patch @DexWrap public boolean isSpoilerAttachment() { if (!PatchConfig.NOSPOILER_ENABLED) { // Patch not enabled return isSpoilerAttachment(); } return false; } // end of nospoiler patch // supplemental patch // Enable gif autoplaying @DexReplace public boolean isVideo() { String str = this.type; boolean equals = str.equals("video"); return !StoreStream.getUserSettings().getAutoplayGifs() ? equals | str.equals("gifv") : equals; } // end // class setup @DexIgnore private String type; // Interfaces @DexIgnore @Override public void assignField(JsonReader jsonReader) throws IOException { } // End of interfaces }