mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 22:05:11 +00:00
FakeNitro: fix animated webp emojis not animating (#3830)
This commit is contained in:
parent
6e11973a30
commit
4c8a734233
1 changed files with 2 additions and 1 deletions
|
|
@ -493,10 +493,11 @@ export default definePlugin({
|
|||
} catch { }
|
||||
|
||||
const emojiName = EmojiStore.getCustomEmojiById(fakeNitroMatch[1])?.name ?? url?.searchParams.get("name") ?? "FakeNitroEmoji";
|
||||
const isAnimated = fakeNitroMatch[2] === "gif" || url?.searchParams.get("animated") === "true";
|
||||
|
||||
return Parser.defaultRules.customEmoji.react({
|
||||
jumboable: !inline && content.length === 1 && typeof content[0].type !== "string",
|
||||
animated: fakeNitroMatch[2] === "gif",
|
||||
animated: isAnimated,
|
||||
emojiId: fakeNitroMatch[1],
|
||||
name: emojiName,
|
||||
fake: true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue